aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2001-01-03 20:56:22 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2001-01-03 20:56:22 +0000
commit03dc032560d43abc8a9867472fdb22cbf0c6b9c7 (patch)
treef0e8c65e787de4d8629a814f63958c000e5b164f /gcc/cp
parent955be6336a2f53d6b15909ddcccee87cfee57674 (diff)
downloadgcc-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/cp')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/lex.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 492a4dc..7404a1a 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
+
+ * lex.c (lang_init): Call c_common_lang_init.
+
2001-01-03 Nathan Sidwell <nathan@codesourcery.com>
* search.c (lookup_fnfields_here): Remove.
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index 0565704..a203ac9 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -1,6 +1,6 @@
/* Separate lexical analyzer for GNU C++.
Copyright (C) 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000 Free Software Foundation, Inc.
+ 1999, 2000, 2001 Free Software Foundation, Inc.
Hacked by Michael Tiemann (tiemann@cygnus.com)
This file is part of GNU CC.
@@ -262,9 +262,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 (flag_gnu_xref) GNU_xref_begin (input_filename);
init_repo (input_filename);