When I was working on something else recently, I realized that the GCC manual
had nothing in its attributes section saying that you could use the various
documented GCC extension attributes with C/C++ standard attribute syntax too,
or how (you have to use the "gnu::" prefix); I ended up finding this
information in the release notes for GCC 10 instead. :-( So, minimally, I am
going to address that.
Going beyond that, though, I think we should also document that the standard
syntax is now the preferred way to do it, and change the examples (except for
the parts documenting the old syntax) to use the new standard syntax. It's
been accepted by the default -std= setting for both C and C++ since GCC 10, and
my understanding is that C2x will be official by the time GCC 14 is released
(so supporting the new syntax won't be just another GNU extension any more).
Does this sound OK to everybody?
-Sandra
- RFC: attributes documentation Sandra Loosemore
-