doc: Put attributes in their own index [PR88472]

GCC has so many attributes nowadays that having a dedicated index for
them seems long overdue.

gcc/ChangeLog
	PR other/88472
	* doc/extend.texi (Common Attributes): Change @cindex entries for
	attributes to @atindex.  Add some additional @cindex entries.
	(AArch64 Attributes): Likewise.
	(AMD GCN Attributes): Likewise.
	(ARC Attributes): Likewise.
	(ARM Attributes): Likewise.
	(AVR Attributes): Likewise.
	(Blackfin Attributes): Likewise.
	(BPF Attributes): Likewise.
	(C-SKY Attributes): Likewise.
	(Epiphany Attributes): Likewise.
	(H8/300 Attributes): Likewise.
	(IA-64 Attributes): Likewise.
	(LoongArch Attributes): Likewise.
	(M32C Attributes): Likewise.
	(M32R/D Attributes): Likewise.
	(m68k Attributes): Likewise.
	(MicroBlaze Attributes): Likewise.
	(Microsoft Windows Attributes): Likewise.
	(MIPS Attributes): Likewise.
	(MSP430 Attributes): Likewise.
	(NDS32 Attributes): Likewise.
	(Nvidia PTX Attributes): Likewise.
	(PowerPC Attributes): Likewise.
	(RISC-V Attributes): Likewise.
	(RL78 Attributes): Likewise.
	(RX Attributes): Likewise.
	(S/390 Attributes): Likewise.
	(SH Attributes): Likewise.
	(Symbian OS Attributes): Likewise.
	(V850 Attributes): Likewise.
	(Visium Attributes): Likewise.
	(x86 Attributes): Likewise.
	(Xstormy16 Attributes): Likewise.
	(C++ Attributes): Likewise.
	* doc/gcc.texi: Define a new "at" index for attributes.
	(Attribute Index): New appendix.
This commit is contained in:
Sandra Loosemore
2026-02-20 01:11:57 +00:00
parent 991a62f5b6
commit b80df4142b
2 changed files with 574 additions and 471 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -28,6 +28,8 @@
@c Create a separate index for command line options.
@defcodeindex op
@c Likewise create a separate index for attributes.
@defindex at
@c Merge the standard indexes into a single one.
@syncodeindex fn cp
@syncodeindex vr cp
@@ -207,13 +209,14 @@ object files.
@menu
* Option Index:: Index to command line options.
* Concept and Symbol Index:: Index of concepts and symbols names.
* Attribute Index:: Index of GNU extension attributes.
* Concept and Symbol Index:: Index of concepts and symbol names.
@end menu
@node Option Index
@appendixsec Option Index
GCC's command line options are indexed here without any initial
GCC's command-line options are indexed here without any initial
@samp{-} or @samp{--}. Where an option has both positive and negative
forms (such as @option{-f@var{option}} and
@option{-fno-@var{option}}), relevant entries in the manual are
@@ -222,6 +225,15 @@ look up both forms.
@printindex op
@node Attribute Index
@appendixsec Attribute Index
This index lists GNU extension attributes only, e.g. those that should
use the @samp{gnu::} namespace prefix in the standard C and C++
attribute syntax.
@printindex at
@node Concept and Symbol Index
@appendixsec Concept and Symbol Index