summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-11-30 10:00:51 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-11-30 10:00:51 +0000
commit42113d6b9d662597e5e1569d2744d3ae373609eb (patch)
tree2a7f58749c59ee76635473d39dd6bed102ad23ea /gcc
parent0430f80c2f301b6c6b4613197a78fa18053b7c81 (diff)
downloadgcc-42113d6b9d662597e5e1569d2744d3ae373609eb.tar.gz
re PR driver/44986 (-fuse-linker-plugin -save-temps gives resolution file base name of last argument)
2010-11-30 Richard Guenther <rguenther@suse.de> PR lto/44986 * gcc.c (main): Use the first input with a compiler as infile for link spec processing. From-SVN: r167292
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/gcc.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e52316ab801..faad0a788e8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2010-11-30 Richard Guenther <rguenther@suse.de>
+ PR lto/44986
+ * gcc.c (main): Use the first input with a compiler as infile
+ for link spec processing.
+
+2010-11-30 Richard Guenther <rguenther@suse.de>
+
PR lto/45949
* cgraphunit.c (ipa_passes): Stop after errors from
small IPA passes.
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 1e525b53c30..d6f0a0812f6 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -6739,7 +6739,8 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"
int i;
for (i = 0; i < n_infiles ; i++)
- if (infiles[i].language && infiles[i].language[0] != '*')
+ if (infiles[i].incompiler
+ || (infiles[i].language && infiles[i].language[0] != '*'))
{
set_input (infiles[i].name);
break;