fix interaction of -S and -x {c,c++}-header
authorJan Beulich <jbeulich@suse.com>
Mon, 4 Jul 2016 07:41:32 +0000 (07:41 +0000)
committerJan Beulich <jbeulich@gcc.gnu.org>
Mon, 4 Jul 2016 07:41:32 +0000 (07:41 +0000)
commit793350758c5c88b29b1c9459f3b3fb1bb00bc0c0
treef8b49d82d85f4ae0e59c56067b88910af9eb7702
parentb32086d3f0e778eacedca4bdfb2d6a1b8ea20a34
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
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/lang-specs.h
gcc/gcc.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/header.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/header.c [new file with mode: 0644]