diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-03-24 12:52:28 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-03-24 12:52:28 +0000 |
commit | 2784528c88b0abf0496214ef78347939366c3eb9 (patch) | |
tree | 656d6e3b34cbf5ee5f2d91701b0ce9db1c44443d /gcc/cppinit.c | |
parent | 056719682d23e15e178a9a0ba4918dc3ded3455a (diff) | |
download | gcc-2784528c88b0abf0496214ef78347939366c3eb9.zip gcc-2784528c88b0abf0496214ef78347939366c3eb9.tar.gz gcc-2784528c88b0abf0496214ef78347939366c3eb9.tar.bz2 |
cppinit.c (cpp_handle_option): Set warn_endif_labels if -pedantic here...
* cppinit.c (cpp_handle_option): Set warn_endif_labels if
-pedantic here...
(cpp_post_options): ... not here.
From-SVN: r51258
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index d3d59ef..0ea8298 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -1470,6 +1470,7 @@ cpp_handle_option (pfile, argc, argv, ignore) /* fall through */ case OPT_pedantic: CPP_OPTION (pfile, pedantic) = 1; + CPP_OPTION (pfile, warn_endif_labels) = 1; break; case OPT_trigraphs: CPP_OPTION (pfile, trigraphs) = 1; @@ -1837,10 +1838,6 @@ cpp_post_options (pfile) || CPP_OPTION (pfile, deps_file) || CPP_OPTION (pfile, deps_phony_targets))) cpp_fatal (pfile, "you must additionally specify either -M or -MM"); - - /* Some things should always be on in pedantic mode. */ - if (CPP_OPTION (pfile, pedantic) == 1) - CPP_OPTION (pfile, warn_endif_labels) = 1; } /* Set up dependency-file output. On exit, if print_deps is non-zero |