This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [4.4] [C++] separate pedwarns and permissive errors.
- From: "Manuel López-Ibáñez" <lopezibanez at gmail dot com>
- To: "Gerald Pfeifer" <gerald at pfeifer dot com>
- Cc: "Gabriel Dos Reis" <gdr at integrable-solutions dot net>, "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 4 Apr 2008 17:38:06 +0200
- Subject: Re: [4.4] [C++] separate pedwarns and permissive errors.
- References: <6c33472e0802220359s2332a12t1621dd95764660f3@mail.gmail.com> <206fcf960802291403t725868dmf14537e7fd02e404@mail.gmail.com> <6c33472e0803010530w4869410dl77e78b0fe36f914e@mail.gmail.com> <alpine.LSU.1.00.0803022041200.23591@pulcherrima.dbai.tuwien.ac.at> <6c33472e0803021159m4887dbabt614d8b9cc979c74c@mail.gmail.com> <alpine.LSU.1.00.0803090012160.22304@acrux.dbai.tuwien.ac.at>
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>