https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102397
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Sandra Loosemore <[email protected]>: https://gcc.gnu.org/g:7733ed8b1a8f5c69de73106fb403c94088d5064d commit r16-7673-g7733ed8b1a8f5c69de73106fb403c94088d5064d Author: Sandra Loosemore <[email protected]> Date: Sat Feb 7 20:26:32 2026 +0000 doc: Rewrite/reorganize discussion of attribute syntax [PR102397] Now that GCC's default language dialect for both C and C++ includes support for the standard attribute syntax, we should encourage users to prefer that instead of the legacy GNU syntax, while recognizing that there is a lot of code out there using the latter. This patch updates the discussion in the introduction to the Attributes section with examples showing attribute placement in both syntaxes and focuses the syntax section on the GNU syntax only. (Users can read the C/C++ standards, programming books or tutorials, etc to learn about the standard syntax, so we don't need to document that in detail.) gcc/ChangeLog PR c++/102397 * doc/extend.texi (Attributes): Rewrite and expand discussion of standard vs legacy syntax, with several examples. (Attribute Syntax): Rename section to... (GNU Attribute Syntax): ...this. Prune discussion of standard attribute syntax. Fix cross-references.
