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]

Re: [4.4] [C++] separate pedwarns and permissive errors.


On 09/03/2008, Gerald Pfeifer <gerald@pfeifer.com> wrote:
> On Sun, 2 Mar 2008, Manuel López-Ibáñez wrote:
>  > Perhaps this is better?
>  >
>  >  * Some of the errors of the C++ front end that could be downgraded to
>  > warnings by using -fpermissive are now warnings by default. They can
>  > be converted into errors by using -pedantic-errors.
>
>
> This even I can understand without problems. :-)  I guess that means its
>  good!
>
>
>  >  * C++ front-end errors that can be downgraded to warnings to support
>  > legacy code mention -fpermissive when -fdiagnostics-show-option is
>  > enabled.
>
>
> How about saying "to build legacy code"?  Support is a bit of an
>  overloaded term (not mainly in GCC-land, but generally) whereas the
>  concept of buidling hopefully will be clear.
>
>  But that's just a detail.  Good stuff as such.

I finally got  around to commit this. I committed the change below. I
hope that is fine.

Index: htdocs/gcc-4.4/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.4/changes.html,v
retrieving revision 1.4
retrieving revision 1.6
diff -u -r1.4 -r1.6
--- htdocs/gcc-4.4/changes.html 24 Mar 2008 16:14:24 -0000      1.4
+++ htdocs/gcc-4.4/changes.html 4 Apr 2008 15:35:11 -0000       1.6
@@ -19,7 +19,12 @@
     been deprecated since GCC 4.0.  Use
     <code>__builtin_va_start</code> as a replacement.  </li>

-  </ul>
+    <li> Some of the errors of the C++ front end that may be
+    downgraded to warnings by using <code>-fpermissive</code> are now
+    warnings by default. They can be converted into errors by using
+    <code>-pedantic-errors</code>.</li>
+
+ </ul>

 <h2>General Optimizer Improvements</h2>

@@ -33,6 +38,10 @@
     <li><a href="cxx0x_status.html">Improved experimental support for
the upcoming
     ISO C++ standard, C++0x</a>, including support for inline namespaces.</li>

+    <li> Those errors that may be downgraded to warnings to build
+    legacy code now mention <code>-fpermissive</code> when
+    <code>-fdiagnostics-show-option</code> is enabled.</li>
+
   </ul>

   <h4>Runtime Library (libstdc++)</h4>


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