re PR c++/24924 (front end and preprocessor pedantic_errors settings should agree)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Thu, 15 Mar 2007 22:24:42 +0000 (22:24 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Thu, 15 Mar 2007 22:24:42 +0000 (22:24 +0000)
commit9b439fe168ff6dacb3aa606f43a2103b68b89ded
treeddc17625766b95f07512a991f379768feb496ed3
parent71afac1da36c39729b20b4a1051fb58fd3d64419
re PR c++/24924 (front end and preprocessor pedantic_errors settings should agree)

2007-03-15  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.

From-SVN: r122961
gcc/ChangeLog
gcc/c-opts.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp/pedantic-errors.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp/permissive.C [new file with mode: 0644]