aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2002-08-10 20:58:45 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-08-10 20:58:45 +0000
commitf749a36bbe59505747cca3c58938635114348601 (patch)
treeb7a73f47d865f8fbdf851af000ec4f2c50e3d927 /gcc/objc
parent77abb5d87daf09198eca038162e3989dadacbae8 (diff)
downloadgcc-f749a36bbe59505747cca3c58938635114348601.zip
gcc-f749a36bbe59505747cca3c58938635114348601.tar.gz
gcc-f749a36bbe59505747cca3c58938635114348601.tar.bz2
c-opts.c (set_std_cxx98, [...]): New.
* 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. From-SVN: r56185
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/lang-specs.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/objc/lang-specs.h b/gcc/objc/lang-specs.h
index e4c1e0f..1e9c701 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",