diff mbox

[wwwdocs] gcc-4.4/porting_to.html: convert a textual reference to a proper one

Message ID alpine.LSU.2.11.1406290128210.30120@tuna.site
State New
Headers show

Commit Message

Gerald Pfeifer June 28, 2014, 11:33 p.m. UTC
...and improve wording and markup a bit.

Applied.

Gerald
diff mbox

Patch

Index: bugs/index.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/bugs/index.html,v
retrieving revision 1.113
diff -u -r1.113 index.html
--- bugs/index.html	28 Jun 2014 07:45:05 -0000	1.113
+++ bugs/index.html	28 Jun 2014 23:28:17 -0000
@@ -350,7 +350,8 @@ 
 anything).</p></dd>
 
 
-<dt>Casting does not work as expected when optimization is turned on.</dt>
+<dt id="casting_and_optimization">Casting does not work as expected when
+optimization is turned on.</dt>
 
 <dd><p>This is often caused by a violation of aliasing rules, which are part
 of the ISO C standard.  These rules say that a program is invalid if you try
Index: gcc-4.4/porting_to.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.4/porting_to.html,v
retrieving revision 1.9
diff -u -r1.9 porting_to.html
--- gcc-4.4/porting_to.html	28 Jun 2014 22:44:29 -0000	1.9
+++ gcc-4.4/porting_to.html	28 Jun 2014 23:28:17 -0000
@@ -95,10 +95,10 @@ 
 using <code>-fno-strict-aliasing </code> or by ignoring this class of
 warning via <code>-Wno-strict-aliasing</code>. To fix, access the
 structure from pointers of an equivalent type, use a union, use
-memcpy, or (if using C++) use placement new. See the section titled
-&quot;Casting does not work as expected when optimization is turned
-on&quot; on <a href="http://gcc.gnu.org/bugs/">bug reporting
-documentation page</a> for more information.
+memcpy, or (if using C++) use placement <code>new</code>. 
+See the section <a href="../bugs/#casting_and_optimization"> 
+Casting does not work as expected when optimization is turned on</a>
+in our bug reporting documentation for more information.
 </p>
 
 <h2>C++ language issues</h2>