https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102397
--- Comment #8 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:cf6a4fbbaf9ff2402d6b3bd4d81b58c98dcdaa88 commit r16-7851-gcf6a4fbbaf9ff2402d6b3bd4d81b58c98dcdaa88 Author: Sandra Loosemore <[email protected]> Date: Mon Mar 2 20:16:28 2026 +0000 doc: Switch some attribute examples to using standard syntax [PR102397] To finish up PR102397, I've switched some of the attribute examples to use the new standard syntax (in addition to the few examples that were already there). Because the old syntax is so common in existing code, I don't think we want to switch all of the examples -- although when folks add new attributes going forward, I'd recommend using the standard syntax in the documentation. I tested that all the modified examples are accepted by GCC. There are relatively few examples of target-specific attributes for the targets I have existing builds for or can build easily to use for such testing, so I decided to just to leave all the target-specific examples alone and focus on the common attributes. gcc/ChangeLog PR c++/102397 * doc/extend.texi (Attributes): Explicitly say that all attributes work in both syntaxes and examples may show either form. (Common Attributes): Convert some examples to use the new syntax.
