summaryrefslogtreecommitdiff
path: root/gcc/c-opts.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2008-01-14 19:21:38 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2008-01-14 19:21:38 +0000
commit8103eebfb73229a018f22718665864730e43c58f (patch)
tree06d06b2ba2f1af178b052bf31c947e63859759e2 /gcc/c-opts.c
parenteeb77d993d4ee82eb43cfabc3e7bb48a0dec66d3 (diff)
downloadgcc-8103eebfb73229a018f22718665864730e43c58f.tar.gz
re PR c++/24924 (front end and preprocessor pedantic_errors settings should agree)
2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR c++/24924 * c-opts (c_common_post_options): Do not enable CPP flag_pedantic_errors by default. testsuite/ * g++.dg/cpp/pedantic-errors.C: Delete. * g++.dg/cpp/permissive.C: Delete. From-SVN: r131530
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r--gcc/c-opts.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index 951118c51b5..ee9b7acc713 100644
--- a/gcc/c-opts.c
+++ b/gcc/c-opts.c
@@ -1102,7 +1102,14 @@ c_common_post_options (const char **pfilename)
if (!flag_permissive)
{
flag_pedantic_errors = 1;
- cpp_opts->pedantic_errors = 1;
+ /* FIXME: For consistency pedantic_errors should have the
+ same value in the front-end and in CPP. However, this
+ will break existing applications. The right fix is
+ disentagle flag_permissive from flag_pedantic_errors,
+ create a new diagnostic function permerror that is
+ controlled by flag_permissive and convert most C++
+ pedwarns to this new function.
+ cpp_opts->pedantic_errors = 1; */
}
if (!flag_no_inline)
{