diff options
author | Jakub Jelinek <jakub@redhat.com> | 2002-01-29 13:09:37 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2002-01-29 13:09:37 +0100 |
commit | ffdeea47b90c0c898219ac96df667012fe9fb739 (patch) | |
tree | 1cb6969668582a88e15febb0d2435a1ddd4ca215 /gcc/cpplib.h | |
parent | b8b98c66af69365e645718d3bf72ccabaa6ef2ab (diff) | |
download | gcc-ffdeea47b90c0c898219ac96df667012fe9fb739.zip gcc-ffdeea47b90c0c898219ac96df667012fe9fb739.tar.gz gcc-ffdeea47b90c0c898219ac96df667012fe9fb739.tar.bz2 |
re PR other/1502 (Nonexistent -W options not diagnosed)
PR other/1502:
* cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
don't ignore unrecognized -W* options.
(cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
* cpplib.h (cpp_handle_option): Adjust prototype.
* c-decl.c (c_decode_options): Pass 0 as last argument to
cpp_handle_option.
PR c/2896:
* gcc.c (cpp_unique_options): Split from cpp_options.
(cpp_options): Source cpp_unique_options.
(default_compilers): Use cpp_unique_options instead of cpp_options
when used together with cc1_options.
(static_specs): Add cpp_unique_options.
* objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
when used together with cc1_options.
* decl2.c (cxx_decode_option): Pass 0 as last argument to
cpp_handle_option.
* lang-specs.h: Use cpp_unique_options instead of cpp_options
when used together with cc1_options.
From-SVN: r49315
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 367491b..eeeecc0 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -473,7 +473,7 @@ extern void cpp_set_callbacks PARAMS ((cpp_reader *, cpp_callbacks *)); structure reliable. Options processing is not completed until you call cpp_finish_options. */ extern int cpp_handle_options PARAMS ((cpp_reader *, int, char **)); -extern int cpp_handle_option PARAMS ((cpp_reader *, int, char **)); +extern int cpp_handle_option PARAMS ((cpp_reader *, int, char **, int)); extern void cpp_post_options PARAMS ((cpp_reader *)); /* This function reads the file, but does not start preprocessing. It |