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)
Thu, Mar 13, 2:42 AM
Unknown Object (File)
Tue, Mar 4, 6:59 PM
Unknown Object (File)
Feb 27 2025, 7:19 PM
Unknown Object (File)
Feb 19 2025, 2:01 AM
Unknown Object (File)
Feb 13 2025, 4:47 PM
Unknown Object (File)
Feb 10 2025, 9:05 PM
Unknown Object (File)
Feb 10 2025, 8:55 PM
Unknown Object (File)
Feb 10 2025, 8:24 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.