diff options
author | Phil Edwards <pme@gcc.gnu.org> | 2002-03-22 21:59:04 +0000 |
---|---|---|
committer | Phil Edwards <pme@gcc.gnu.org> | 2002-03-22 21:59:04 +0000 |
commit | 909de5da19288f60ab09dbe6165399d3f833a692 (patch) | |
tree | d57dbbd51916727143458d291e8952b43c8151c0 /gcc/cpplib.h | |
parent | 4299b4e14e26a0c74563843b627ff707d7be0406 (diff) | |
download | gcc-909de5da19288f60ab09dbe6165399d3f833a692.zip gcc-909de5da19288f60ab09dbe6165399d3f833a692.tar.gz gcc-909de5da19288f60ab09dbe6165399d3f833a692.tar.bz2 |
cpplib.h (struct cpp_options): New member, warn_endif_labels.
2002-03-22 Phil Edwards <pme@gcc.gnu.org>
* cpplib.h (struct cpp_options): New member, warn_endif_labels.
* cppinit.c (cpp_create_reader): On by default.
(cpp_handle_option): Handle -W[no-]endif-labels.
(cpp_post_options): Also enable if -pedantic.
* cpplib.c (do_else): Use it.
(do_endif): Likewise.
* doc/cppopts.texi: Document new option.
* doc/invoke.texi: Document new option.
From-SVN: r51190
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 191649c..783b258 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -308,6 +308,9 @@ struct cpp_options traditional C. */ unsigned char warn_traditional; + /* Nonzero means warn about text after an #endif (or #else). */ + unsigned char warn_endif_labels; + /* Nonzero means turn warnings into errors. */ unsigned char warnings_are_errors; |