summaryrefslogtreecommitdiff
path: root/gcc/c-lang.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-20 18:27:32 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-20 18:27:32 +0000
commitfad0ffbb9628663e1c022a489ea0809a6761649d (patch)
tree24d965cfca605ecaa67abda32d7a2c64f3ee143c /gcc/c-lang.c
parent417f2c0c97ccd8187387ff025d58e4024aace555 (diff)
downloadgcc-fad0ffbb9628663e1c022a489ea0809a6761649d.tar.gz
* c-lang.c (lang_init_options): Update call to
cpp_reader_init. * cppmain.c (main): Similarly. * fix-header.c (read_scan_file): Similarly. * cp/lex.c (lang_init_options): Similarly. * objc/objc-act.c (lang_init_options): Similarly. * cppexp.c (parse_number): Only warn for unextended C89. * cppinit.c (set_lang): New function. (cpp_reader_init): Take a LANG argument and pass it to set_lang. (COMMAND_LINE_OPTIONS): New option std=c++98. (cpp_handle_option): Use set_lang. * cpplib.h (enum_c_lang): New enumeration. Update comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37587 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r--gcc/c-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c
index 7259429b10a..1c9fe38f133 100644
--- a/gcc/c-lang.c
+++ b/gcc/c-lang.c
@@ -58,7 +58,7 @@ lang_init_options ()
{
#if USE_CPPLIB
cpp_init ();
- cpp_reader_init (&parse_in);
+ cpp_reader_init (&parse_in, CLK_GNUC89);
#endif
/* Mark as "unspecified". */
flag_bounds_check = -1;