HomeFreeBSD

sys/cdefs.h: Note gcc supports many __has_* macros

Description

sys/cdefs.h: Note gcc supports many __has_* macros

The has_* macros are no longer clang-speicifc. gcc 5 introduced
has_include, gcc 9 introduce has_attribute, gcc 10 introduced
has_builtin. So all of these are supported by all the versrions of gcc
we support as a project (we have gcc 10 and newer ports, but no older
ones), so just refer to them as supported by gcc. The exact version
doesn't matter so much these days (we provide a fallback for older
compilers still, should anybody still be using them), so don't mention
them in the comments (but here in the commit message they are
discoverable).

gcc 14 adds has_feature and has_extension, so note that since it
will be relevant for many years.

Sponsored by: Netflix

Details

Provenance
impAuthored on Jun 24 2024, 7:20 PM
Parents
rG65522b64ad7e: sys/cdefs.h: Remove old arm acle-compat.h workaround
Branches
Unknown
Tags
Unknown