diff mbox

[doc] fix broken anchor in install.texi

Message ID CAH6eHdRM+3edLFDbptCsH0Oqjp715Z6MK0_wq7aeLCvR1KrwEg@mail.gmail.com
State New
Headers show

Commit Message

Jonathan Wakely Oct. 4, 2011, 7:32 p.m. UTC
I want to commit the attached patch to install.texi, but have been
unable to test it successfully.

The problem is that the link for "x86_64-*-solaris2.1[0-9]*" in the
Host/Target Specific notes is
http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
but the corresponding anchor is:
<a name="x86-64-x-solaris2_002e10">

Note the "_002e" difference, which is caused by the texinfo uref being:
@uref{#x86-64-x-solaris210,,x86_64-*-solaris2.1[0-9]*}
but the anchor target having an extra dot:
@anchor{x86-64-x-solaris2.10}

My patch removes that dot.

I tried to test it by regenerating the HTML docs (using
texinfo-4.13a-15 from Fedora 15), but I get different results: the dot
is gone as expected, but every hyphen gets expanded to _002d, so none
of the anchors work!

I'm pretty sure the patch is correct but will check the link in the
GCC onlinedocs once they're regenerated.

OK to commit?

2011-10-04  Jonathan Wakely  <jwakely.gcc@gmail.com>

        * doc/install.texi (Specific): Fix anchor for
        x86_64-*-solaris2.1[0-9]*
diff mbox

Patch

Index: install.texi
===================================================================
--- install.texi	(revision 179520)
+++ install.texi	(working copy)
@@ -4448,7 +4448,7 @@  both 64-bit x86-64 and 32-bit x86 code (
 @html
 <hr />
 @end html
-@heading @anchor{x86-64-x-solaris2.10}x86_64-*-solaris2.1[0-9]*
+@heading @anchor{x86-64-x-solaris210}x86_64-*-solaris2.1[0-9]*
 
 GCC also supports the x86-64 architecture implemented by the AMD64
 processor (@samp{amd64-*-*} is an alias for @samp{x86_64-*-*}) on