Page MenuHomeFreeBSD

cdefs.h: Remove support for pre gcc 4.0
ClosedPublic

Authored by imp on Jun 20 2024, 6:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Feb 7, 11:46 PM
Unknown Object (File)
Fri, Feb 7, 7:27 AM
Unknown Object (File)
Fri, Jan 31, 4:57 PM
Unknown Object (File)
Nov 28 2024, 9:56 PM
Unknown Object (File)
Nov 23 2024, 7:16 AM
Unknown Object (File)
Nov 2 2024, 7:54 AM
Unknown Object (File)
Nov 2 2024, 7:41 AM
Unknown Object (File)
Sep 29 2024, 9:10 PM
Subscribers

Details

Summary

All supported compilers support the gcc 3 attribute extensions. Remove
the #else clauses for this. Also, latter-day pcc compilers also define
GNUC, so there's not need to also test for PCC.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jun 20 2024, 6:16 AM
imp created this revision.
brooks added a subscriber: brooks.
brooks added inline comments.
sys/sys/cdefs.h
154–157

Maybe rewrite entirely with something like:
(Free)BSD-specific macros for once-optional declarations of dead (non-returning) and pure (no side effects) functions, unused variables, or unusual structure layout or alignment. Today these attributes are supported by all current compilers, even pcc.

This revision is now accepted and ready to land.Jun 20 2024, 4:50 PM
This revision was automatically updated to reflect the committed changes.