This matches a clean up I have done for the GCC 4.6 and GCC 4.4 variants of this document.
Applied. Gerald Index: porting_to.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.3/porting_to.html,v retrieving revision 1.6 diff -u -r1.6 porting_to.html --- porting_to.html 22 Feb 2008 20:06:39 -0000 1.6 +++ porting_to.html 20 Nov 2011 01:59:00 -0000 @@ -26,9 +26,9 @@ manner. Additions and suggestions for improvement are welcome. </p> -<h3>C language issues</h3> +<h2>C language issues</h2> -<h4>Semantic change of extern inline</h4> +<h3>Semantic change of extern inline</h3> <p> When compiling with <code>-std=c99</code> or <code>-std=gnu99</code>, @@ -75,7 +75,7 @@ { return 5; } </pre> -<h4>New warnings</h4> +<h3>New warnings</h3> <p>Significant changes were made to <code>-Wconversion</code>. In addition, improvements to the GCC infrastructure allow improvements in @@ -96,9 +96,9 @@ are fixed, or for conversion warnings add <code>-Wno-conversion</code>. </p> -<h3>C++ language issues</h3> +<h2>C++ language issues</h2> -<h4>Header dependency cleanup</h4> +<h3>Header dependency cleanup</h3> <p> As detailed @@ -170,7 +170,7 @@ </tr> </table> -<h4>Removal of Pre-ISO headers</h4> +<h3>Removal of Pre-ISO headers</h3> <p>Various backwards and deprecated headers have been removed. </p> @@ -318,8 +318,7 @@ <p>For future reference, available headers are listed <a href="http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt01ch03s02.html">here</a>. </p> -<p>An example. -</p> +<p>An example.</p> <pre> #include <iostream.h> @@ -372,7 +371,7 @@ <p>Note that explicitly qualifying <code>cout</code> as <code>std::cout</code> and likewise for <code>endl</code> instead of globally injecting the <code>std</code> namespace (ie, <code>using namespace std</code>) will also work. </p> -<h4>Name lookup changes</h4> +<h3>Name lookup changes</h3> <p> GCC by default no longer accepts code such as </p> @@ -412,7 +411,7 @@ conforming. </p> -<h4>Duplicate function parameters</h4> +<h3>Duplicate function parameters</h3> <p>Duplicate function parameters are now treated uniformly as an error in C and C++. @@ -438,7 +437,7 @@ </pre> -<h4>Stricter requirements for function main signature</h4> +<h3>Stricter requirements for function main signature</h3> <p>The two-argument signature for main has <code>int</code> as the first argument. GCC 4.3 rigorously enforces this. @@ -464,7 +463,7 @@ { return 0; } </pre> -<h4>Explicit template specialization cannot have a storage class</h4> +<h3>Explicit template specialization cannot have a storage class</h3> <p>Specializations of templates cannot explicitly specify a storage class, and have the same storage as the primary template. This is a @@ -499,9 +498,9 @@ void foo<void>(); </pre> -<h3>Java issues</h3> +<h2>Java issues</h2> -<h4>Java 1.2 and earlier requires upgraded <code>ant</code></h4> +<h3>Java 1.2 and earlier requires upgraded <code>ant</code></h3> <p>The use of the Eclipse Java compiler in GCC 4.3 enables the use of all 1.5 language features, but use with older versions of @@ -520,7 +519,7 @@ svn diff -r529854:529855 http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java </pre> -<h3>Links</h3> +<h2>Links</h2> <p> Jakub Jelinek, <a href="https://www.redhat.com/archives/fedora-devel-list/2008-January/msg00128.html">Mass rebuild status with gcc-4.3.0-0.4 of rawhide-20071220</a> @@ -547,9 +546,5 @@ </a> </p> -<!-- ==================================================================== --> - </body> </html> - -