diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2000-12-06 17:19:32 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2000-12-06 17:19:32 +0000 |
commit | 8954e858e668197d24695957a64d316253355c25 (patch) | |
tree | 6ba6b2b20b93a17bc13308483196982d86f6d494 /gcc | |
parent | 03391b53b53f4d9547cdc71dbea369617ca73767 (diff) | |
download | gcc-8954e858e668197d24695957a64d316253355c25.zip gcc-8954e858e668197d24695957a64d316253355c25.tar.gz gcc-8954e858e668197d24695957a64d316253355c25.tar.bz2 |
lang-specs.h (c++): When invoking the stand-alone preprocessor for -save-temps...
* lang-specs.h (c++): When invoking the stand-alone preprocessor
for -save-temps, pass all relevant -Defines to it, and then don't
pass them to cc1plus.
From-SVN: r38067
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/lang-specs.h | 16 |
2 files changed, 16 insertions, 6 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7358f65..585e815 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2000-12-06 Alexandre Oliva <aoliva@redhat.com> + + * lang-specs.h (c++): When invoking the stand-alone preprocessor + for -save-temps, pass all relevant -Defines to it, and then don't + pass them to cc1plus. + 2000-12-05 Will Cohen <wcohen@redhat.com> * decl.c (finish_case_label): Cleared diff --git a/gcc/cp/lang-specs.h b/gcc/cp/lang-specs.h index 7e83eec..716a93b 100644 --- a/gcc/cp/lang-specs.h +++ b/gcc/cp/lang-specs.h @@ -33,15 +33,19 @@ Boston, MA 02111-1307, USA. */ the external preprocessor if -save-temps is given. */ "%{E|M|MM:cpp0 -lang-c++ %{!no-gcc:-D__GNUG__=%v1}\ %{fnew-abi:-D__GXX_ABI_VERSION=100}\ - %{ansi:-trigraphs -$ -D__STRICT_ANSI__} %(cpp_options)}\ + %{ansi:-D__STRICT_ANSI__ -trigraphs -$} %(cpp_options)}\ %{!E:%{!M:%{!MM:\ - %{save-temps:cpp0 -lang-c++ %{ansi:-trigraphs -$ -D__STRICT_ANSI__}\ + %{save-temps:cpp0 -lang-c++ \ + %{!no-gcc:-D__GNUG__=%v1}\ + %{fnew-abi:-D__GXX_ABI_VERSION=100}\ + %{ansi:-D__STRICT_ANSI__ -trigraphs -$}\ %(cpp_options) %b.ii \n}\ cc1plus %{save-temps:-fpreprocessed %b.ii}\ - %{!save-temps:%(cpp_options)}\ - %{!no-gcc:-D__GNUG__=%v1}\ - %{fnew-abi:-D__GXX_ABI_VERSION=100}\ - %{ansi:-trigraphs -$ -D__STRICT_ANSI__}\ + %{!save-temps:%(cpp_options)\ + %{!no-gcc:-D__GNUG__=%v1}\ + %{fnew-abi:-D__GXX_ABI_VERSION=100}\ + %{ansi:-D__STRICT_ANSI__}}\ + %{ansi:-trigraphs -$}\ %(cc1_options) %2 %{+e*}\ %{!fsyntax-only:%(invoke_as)}}}}"}, {".ii", "@c++-cpp-output"}, |