diff options
author | Jan Beulich <jbeulich@suse.com> | 2016-07-04 07:41:32 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@gcc.gnu.org> | 2016-07-04 07:41:32 +0000 |
commit | 793350758c5c88b29b1c9459f3b3fb1bb00bc0c0 (patch) | |
tree | f8b49d82d85f4ae0e59c56067b88910af9eb7702 /gcc/cp/lang-specs.h | |
parent | b32086d3f0e778eacedca4bdfb2d6a1b8ea20a34 (diff) | |
download | gcc-793350758c5c88b29b1c9459f3b3fb1bb00bc0c0.zip gcc-793350758c5c88b29b1c9459f3b3fb1bb00bc0c0.tar.gz gcc-793350758c5c88b29b1c9459f3b3fb1bb00bc0c0.tar.bz2 |
fix interaction of -S and -x {c,c++}-header
Irrespective of the use of -o this so far resulted in "error: output
filename specified twice", since cc1_options already produces a -o
option when -S was specified.
gcc/
2016-07-04 Jan Beulich <jbeulich@suse.com>
* gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
gcc/cp/
2016-07-04 Jan Beulich <jbeulich@suse.com>
* lang-specs.h ("@c++-header"): Conditionalize "-o".
gcc/testsuite/
2016-07-04 Jan Beulich <jbeulich@suse.com>
* g++.dg/header.c: New.
* gcc.dg/header.c: New.
From-SVN: r237955
Diffstat (limited to 'gcc/cp/lang-specs.h')
-rw-r--r-- | gcc/cp/lang-specs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/lang-specs.h b/gcc/cp/lang-specs.h index 9707fac..9217950 100644 --- a/gcc/cp/lang-specs.h +++ b/gcc/cp/lang-specs.h @@ -47,7 +47,7 @@ along with GCC; see the file COPYING3. If not see cc1plus %{save-temps*|no-integrated-cpp:-fpreprocessed %{save-temps*:%b.ii} %{!save-temps*:%g.ii}}\ %{!save-temps*:%{!no-integrated-cpp:%(cpp_unique_options)}}\ %(cc1_options) %2\ - %{!fsyntax-only:-o %g.s \ + %{!fsyntax-only:%{!S:-o %g.s} \ %{!fdump-ada-spec*:%{!o*:--output-pch=%i.gch}\ %W{o*:--output-pch=%*}}%V}}}}", CPLUSPLUS_CPP_SPEC, 0, 0}, |