diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2002-08-10 20:58:45 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-08-10 20:58:45 +0000 |
commit | f749a36bbe59505747cca3c58938635114348601 (patch) | |
tree | b7a73f47d865f8fbdf851af000ec4f2c50e3d927 /gcc/gcc.c | |
parent | 77abb5d87daf09198eca038162e3989dadacbae8 (diff) | |
download | gcc-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/gcc.c')
-rw-r--r-- | gcc/gcc.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -829,24 +829,23 @@ static const struct compiler default_compilers[] = {"@c", /* cc1 has an integrated ISO C preprocessor. We should invoke the external preprocessor if -save-temps is given. */ - "%{E|M|MM:%(trad_capable_cpp) %{ansi:-std=c89} %(cpp_options)\ - %(cpp_debug_options)}\ + "%{E|M|MM:%(trad_capable_cpp) %(cpp_options) %(cpp_debug_options)}\ %{!E:%{!M:%{!MM:\ %{traditional|ftraditional:\ %eGNU C no longer supports -traditional without -E}\ %{save-temps|traditional-cpp:%(trad_capable_cpp) \ - %{ansi:-std=c89} %(cpp_options) %b.i \n\ + %(cpp_options) %b.i \n\ cc1 -fpreprocessed %b.i %(cc1_options)}\ %{!save-temps:%{!traditional-cpp:\ - cc1 %{ansi:-std=c89} %(cpp_unique_options) %(cc1_options)}}\ + cc1 %(cpp_unique_options) %(cc1_options)}}\ %{!fsyntax-only:%(invoke_as)}}}}", 0}, {"-", "%{!E:%e-E required when input is from standard input}\ - %(trad_capable_cpp) %{ansi:-std=c89} %(cpp_options)", 0}, + %(trad_capable_cpp) %(cpp_options)", 0}, {".h", "@c-header", 0}, {"@c-header", "%{!E:%ecompilation of header file requested} \ - %(trad_capable_cpp) %{ansi:-std=c89} %(cpp_options) %(cpp_debug_options)", + %(trad_capable_cpp) %(cpp_options) %(cpp_debug_options)", 0}, {".i", "@cpp-output", 0}, {"@cpp-output", |