diff mbox

Fix -flto a.i b.i compilation (PR driver/47787)

Message ID 20110218210120.GP30899@tyan-ft48-01.lab.bos.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek Feb. 18, 2011, 9:01 p.m. UTC
Hi!

When Richard removed -combine support, he cleared the combinable
flag from ".i", ".c", "@c", but not "@cpp-output".  This patch
does that, fixing gcc -flto -o a a.i b.i compilation which passed
both preprocessed sources to the same cc1.

Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?

2011-02-18  Jakub Jelinek  <jakub@redhat.com>

	PR driver/47787
	* gcc.c (default_compilers): Clear combinable field for "@cpp-output".


	Jakub

Comments

Joseph Myers Feb. 18, 2011, 9:14 p.m. UTC | #1
On Fri, 18 Feb 2011, Jakub Jelinek wrote:

> 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR driver/47787
> 	* gcc.c (default_compilers): Clear combinable field for "@cpp-output".

OK.
diff mbox

Patch

--- gcc/gcc.c.jj	2011-02-18 08:49:29.000000000 +0100
+++ gcc/gcc.c	2011-02-18 17:59:52.000000000 +0100
@@ -950,7 +950,7 @@  static const struct compiler default_com
                     %W{o*:--output-pch=%*}}%V}}}}}}", 0, 0, 0},
   {".i", "@cpp-output", 0, 0, 0},
   {"@cpp-output",
-   "%{!M:%{!MM:%{!E:cc1 -fpreprocessed %i %(cc1_options) %{!fsyntax-only:%(invoke_as)}}}}", 0, 1, 0},
+   "%{!M:%{!MM:%{!E:cc1 -fpreprocessed %i %(cc1_options) %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0},
   {".s", "@assembler", 0, 0, 0},
   {"@assembler",
    "%{!M:%{!MM:%{!E:%{!S:as %(asm_debug) %(asm_options) %i %A }}}}", 0, 0, 0},