Bug in documentation presentation. You can also try this under http://gcc.gnu.org/onlinedocs/gcc/ Jump to 6.37 "Specifying Attributes of Variables" Click Next, you land on 6.38 "Specifying Attributes of Types". Fine. Click Next, you land on 6.36 "Inquiring on Alignment of Types or Variables". Strange. Click Next, you land on 6.39 "An Inline Function Is...". The table of content seems correct. Also, on my texinfo gcc.info data base (from GCC 4.6.0 RC 20110314), but not on onlinedocs, the reference (* note Variable Attributes::) jumps to 6.37.1 "Blackfin Variable Attributes" instead of 6.37.
confirmed, the @menu at the start of extend.texi lists the sections in a different order to the order the @sections actually appear: * Variable Attributes:: Specifying attributes of variables. * Type Attributes:: Specifying attributes of types. * Alignment:: Inquiring about the alignment of a type or variable. * Inline:: Defining inline functions (as fast as macros).
patch posted to http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01453.html
Author: redi Date: Wed Mar 23 19:52:13 2011 New Revision: 171359 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171359 Log: 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com> PR other/48179 PR other/48221 PR other/48234 * doc/extend.texi (Alignment): Move section to match order in TOC. * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise. (Warning Options): Adjust -Wno-cpp summary and remove stray backslash. Modified: trunk/gcc/ChangeLog trunk/gcc/doc/extend.texi trunk/gcc/doc/invoke.texi
Author: redi Date: Wed Mar 23 21:12:51 2011 New Revision: 171363 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171363 Log: 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com> PR other/48179 PR other/48234 * doc/extend.texi (Alignment): Move section to match order in TOC. * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise. Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/doc/extend.texi branches/gcc-4_5-branch/gcc/doc/invoke.texi
Author: redi Date: Wed Mar 23 21:45:18 2011 New Revision: 171365 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171365 Log: 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com> PR other/48179 PR other/48234 * doc/extend.texi (Alignment): Move section to match order in TOC. * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise. Modified: branches/gcc-4_4-branch/gcc/ChangeLog branches/gcc-4_4-branch/gcc/doc/extend.texi branches/gcc-4_4-branch/gcc/doc/invoke.texi
Fixed on trunk and 4.4 and 4.5 branches. I'll fix for 4.6.1 when the branch reopens.
Author: redi Date: Sun Mar 27 20:08:35 2011 New Revision: 171581 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171581 Log: 2011-03-27 Jonathan Wakely <jwakely.gcc@gmail.com> PR other/48179 PR other/48221 PR other/48234 * doc/extend.texi (Alignment): Move section to match order in TOC. * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise. (Warning Options): Adjust -Wno-cpp summary and remove stray backslash. Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/doc/extend.texi branches/gcc-4_6-branch/gcc/doc/invoke.texi
fixed