diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2001-01-03 20:56:22 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2001-01-03 20:56:22 +0000 |
commit | 03dc032560d43abc8a9867472fdb22cbf0c6b9c7 (patch) | |
tree | f0e8c65e787de4d8629a814f63958c000e5b164f /gcc/c-lang.c | |
parent | 955be6336a2f53d6b15909ddcccee87cfee57674 (diff) | |
download | gcc-03dc032560d43abc8a9867472fdb22cbf0c6b9c7.zip gcc-03dc032560d43abc8a9867472fdb22cbf0c6b9c7.tar.gz gcc-03dc032560d43abc8a9867472fdb22cbf0c6b9c7.tar.bz2 |
c-common.c (c_common_lang_init): New function.
* c-common.c (c_common_lang_init): New function. Warn if format
warning options which only have effects when used with -Wformat
are used without -Wformat.
* c-common.h (c_common_lang_init): Declare.
* c-lang.c (lang_init): Call c_common_lang_init.
* objc/objc-act.c (lang_init): Call c_common_lang_init.
cp:
* lex.c (lang_init): Call c_common_lang_init.
From-SVN: r38672
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r-- | gcc/c-lang.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c index 5217391..b96895d 100644 --- a/gcc/c-lang.c +++ b/gcc/c-lang.c @@ -62,9 +62,7 @@ lang_init_options () void lang_init () { - /* If still "unspecified", make it match -fbounded-pointers. */ - if (flag_bounds_check < 0) - flag_bounds_check = flag_bounded_pointers; + c_common_lang_init (); /* If still unspecified, make it match pedantic && -std=c99. */ if (mesg_implicit_function_declaration < 0) |