From 3ae4c9f37a4dedba00ae88662a756ff7130ddea6 Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 10 Aug 2002 20:58:45 +0000 Subject: * c-opts.c (set_std_cxx98, set_std_c89): New. (COMMAND_LINE_OPTIONS): Move more from cppinit.c. (c_common_decode_option): Handle new switches from cppinit.c. Add -std=gnu++98. * cppinit.c (set_lang): Rename cpp_set_lang. Export. (no_arg, no_num): Remove. (COMMAND_LINE_OPTIONS): Move more to c-opts.c. Drop all lang- switches apart from -lang-objc and lang-asm. (cpp_handle_option): Similarly. * cpplib.h (cpp_set_lang): New. * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98, -std=gnu++98. * objc/lang-specs.h: Remove -ansi. cp: * lang-specs.h: Remove -ansi. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56185 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cpplib.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/cpplib.h') diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 97520a7ed96..75a9d921bab 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -504,6 +504,10 @@ struct cpp_hashnode /* Call this first to get a handle to pass to other functions. */ extern cpp_reader *cpp_create_reader PARAMS ((enum c_lang)); +/* Call this to change the selected language standard (e.g. because of + command line options). */ +extern void cpp_set_lang PARAMS ((cpp_reader *, enum c_lang)); + /* Call these to get pointers to the options and callback structures for a given reader. These pointers are good until you call cpp_finish on that reader. You can either edit the callbacks -- cgit v1.2.1