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]

[PING^2] PR24924 front end and preprocessor pedantic_errors settings should agree


http://gcc.gnu.org/ml/gcc-patches/2007-01/msg02234.html

Re-diffed, re-bootstrapped and re-regression-tested.



On 27/01/07, Manuel López-Ibáñez <lopezibanez@gmail.com> wrote:
:ADDPATCH c++:

This patch makes the preprocessor to give an error for pedwarns by
default unless fpermissive is given, when the language is a dialect of
C++.

Boostrapped and regression tested.

Does it look OK to you?


2007-01-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>


  PR c++/24924
  * c-opts.c (c_common_post_options): Handle C++ post-processing here.
Set also -pedantic-errors by default for the  preprocessor unless
-fpermissive is given.

cp/
  * decl.c (cxx_init_decl_processing): Move command-line options
processing to c-opts.c.

testsuite/
  * g++.dg/cpp/pedantic-errors.C: New.
  * g++.dg/cpp/permissive.C: New.


Attachment: pedantic-cpp-errors.diff
Description: Text document


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