diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-10 20:58:45 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-10 20:58:45 +0000 |
commit | 3ae4c9f37a4dedba00ae88662a756ff7130ddea6 (patch) | |
tree | b7a73f47d865f8fbdf851af000ec4f2c50e3d927 /gcc/objc/lang-specs.h | |
parent | 4c1171a641f0e5e5cd64360330d5a8ef48eb89f4 (diff) | |
download | gcc-3ae4c9f37a4dedba00ae88662a756ff7130ddea6.tar.gz |
* 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
Diffstat (limited to 'gcc/objc/lang-specs.h')
-rw-r--r-- | gcc/objc/lang-specs.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/objc/lang-specs.h b/gcc/objc/lang-specs.h index e4c1e0fbaa6..1e9c70155ad 100644 --- a/gcc/objc/lang-specs.h +++ b/gcc/objc/lang-specs.h @@ -26,15 +26,14 @@ Boston, MA 02111-1307, USA. */ /* cc1obj has an integrated ISO C preprocessor. We should invoke the external preprocessor if -save-temps or -traditional is given. */ "%{E|M|MM:%(trad_capable_cpp)\ - -lang-objc %{ansi:-std=c89} %(cpp_options) %(cpp_debug_options)}\ + -lang-objc %(cpp_options) %(cpp_debug_options)}\ %{!E:%{!M:%{!MM:\ %{traditional|ftraditional|traditional-cpp:\ %eGNU Objective C no longer supports traditional compilation}\ - %{save-temps:cc1obj -E %{ansi:-std=c89}\ - %(cpp_options) %b.mi \n\ + %{save-temps:cc1obj -E %(cpp_options) %b.mi \n\ cc1obj -fpreprocessed %b.mi %(cc1_options) %{gen-decls}}\ %{!save-temps:\ - cc1obj %{ansi:-std=c89} %(cpp_unique_options) %(cc1_options) %{gen-decls}}\ + cc1obj %(cpp_unique_options) %(cc1_options) %{gen-decls}}\ %{!fsyntax-only:%(invoke_as)}}}}", 0}, {".mi", "@objc-cpp-output", 0}, {"@objc-cpp-output", |