This is an unfortunate instances where the __has_attribute check does
not function usefully. Gcc does have the attribute, but for gcc it only
applies to functions, not variables, and trying to apply it to a
variable generates Wattribute. So far we only apply the attribute to
variables. Only enable the attribute for clang, for now.
Details
Details
make buildkernel
make CROSS_TOOLCHAIN=amd64-gcc9 buildkernel
Diff Detail
Diff Detail
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 28229 Build 26353: arc lint + arc unit
Event Timeline
Comment Actions
Works for now. If I have time over the break I’ll take a look at whether gcc could easily be extended to apply this attribute to variables where it makes sense.