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/cp/lang-specs.h | |
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/cp/lang-specs.h')
-rw-r--r-- | gcc/cp/lang-specs.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/cp/lang-specs.h b/gcc/cp/lang-specs.h index 7b87116..2e9640c 100644 --- a/gcc/cp/lang-specs.h +++ b/gcc/cp/lang-specs.h @@ -33,16 +33,14 @@ Boston, MA 02111-1307, USA. */ {".c++", "@c++", 0}, {".C", "@c++", 0}, {"@c++", - /* We should convert -ansi to -std=c++98 even if -fpreprocessed, - to get dollars in identifiers correct. */ "%{E|M|MM:cc1plus -E %{!no-gcc:-D__GNUG__=%v1}\ - %{ansi:-std=c++98} %(cpp_options) %2 %(cpp_debug_options)}\ + %(cpp_options) %2 %(cpp_debug_options)}\ %{!E:%{!M:%{!MM:\ %{save-temps:cc1plus -E %{!no-gcc:-D__GNUG__=%v1}\ - %{ansi:-std=c++98} %(cpp_options) %2 %b.ii \n}\ + %(cpp_options) %2 %b.ii \n}\ cc1plus %{save-temps:-fpreprocessed %b.ii}\ %{!save-temps:%(cpp_unique_options) %{!no-gcc:-D__GNUG__=%v1}}\ - %{ansi:-std=c++98} %(cc1_options) %2 %{+e1*}\ + %(cc1_options) %2 %{+e1*}\ %{!fsyntax-only:%(invoke_as)}}}}", CPLUSPLUS_CPP_SPEC}, {".ii", "@c++-cpp-output", 0}, |