Page MenuHomeFreeBSD

cdefs.h: Remove support for pre gcc 4.0
ClosedPublic

Authored by imp on Thu, Jun 20, 6:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 21, 7:20 PM
Unknown Object (File)
Thu, Jun 20, 6:41 AM
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.Thu, Jun 20, 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.Thu, Jun 20, 4:50 PM
This revision was automatically updated to reflect the committed changes.