diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2007-03-15 22:24:42 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2007-03-15 22:24:42 +0000 |
commit | 9b439fe168ff6dacb3aa606f43a2103b68b89ded (patch) | |
tree | ddc17625766b95f07512a991f379768feb496ed3 /gcc/cp/decl.c | |
parent | 71afac1da36c39729b20b4a1051fb58fd3d64419 (diff) | |
download | gcc-9b439fe168ff6dacb3aa606f43a2103b68b89ded.zip gcc-9b439fe168ff6dacb3aa606f43a2103b68b89ded.tar.gz gcc-9b439fe168ff6dacb3aa606f43a2103b68b89ded.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 14d20ce..eefbba3 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3143,17 +3143,6 @@ cxx_init_decl_processing (void) current_lang_name = NULL_TREE; - /* Adjust various flags based on command-line settings. */ - if (!flag_permissive) - flag_pedantic_errors = 1; - if (!flag_no_inline) - { - flag_inline_trees = 1; - flag_no_inline = 1; - } - if (flag_inline_functions) - flag_inline_trees = 2; - /* Force minimum function alignment if using the least significant bit of function pointers to store the virtual bit. */ if (TARGET_PTRMEMFUNC_VBIT_LOCATION == ptrmemfunc_vbit_in_pfn |