This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[wwwdocs] Update porting_to


Since the fix for PR 24924 has been reverted, this section is not
needed anymore. I have committed this as trivial.

Cheers,

Manuel.
Index: htdocs/gcc-4.3/porting_to.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.3/porting_to.html,v
retrieving revision 1.1
diff -u -r1.1 porting_to.html
--- htdocs/gcc-4.3/porting_to.html	12 Jan 2008 00:35:30 -0000	1.1
+++ htdocs/gcc-4.3/porting_to.html	14 Jan 2008 19:26:36 -0000
@@ -171,70 +171,6 @@
   </tr>
 </table>
 
-<h4>Preprocessor warnings now errors</h4>
-
-<p>The C++ preprocessor now emits errors by default for certain
-    non-conformant code and for <code>-pedantic</code>, following the
-    default behaviour of the C++ front-end. As a result, some warnings
-    are now hard errors. Of note is divergence between C and C++: in C
-    these remain warnings.  In particular, preprocessor warnings about
-    redefinition, variadic macros, and trailing characters after a
-    closing <code>#endif</code> are now hard errors.
-</p>
-
-<p>For instance, the following redefinition of TEST is now problematic.
-</p>
-
-<pre>
-#define TEST "foo"
-#define TEST "bar"
-</pre>
-
-<p>Now errors:</p>
-
-<pre>
-error: "TEST" redefined
-error: this is the location of the previous definition
-</pre>
-
-<p>To fix this, either remove one of the defines from the translation
-unit, or guard the second define.
-</p>
-<pre>
-#define TEST "foo"
-#ifndef TEST
-# define TEST "bar"
-#endif
-</pre>
-
-<p>Another preprocessor warning change is for extra tokens
-after and <code>#endif</code>, code like:
-</p>
-
-<pre>
-#ifdef TEST
-#endif TEST
-</pre>
-
-<p>Which now errors:</p>
-
-<pre>
-error: extra tokens at end of #endif directive
-</pre>
-
-<p>To get rid of this error, remove any trailing text after an <code>#endif</code>, like so.
-</p>
-
-<pre>
-#ifdef TEST
-#endif
-</pre>
-
-<p>For all cases, the command line option <code>-fpermissive</code>
-can be used as a temporary workaround to transform the hard errors
-into warnings.
-</p>
-
 <h4>Name lookup changes</h4>
 <p>
 GCC by default no longer accepts code such as

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]