From: Richard Guenther Date: Tue, 30 Nov 2010 10:00:51 +0000 (+0000) Subject: re PR driver/44986 (-fuse-linker-plugin -save-temps gives resolution file base name... X-Git-Tag: releases/gcc-4.6.0~2242 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=42113d6b9d662597e5e1569d2744d3ae373609eb;p=thirdparty%2Fgcc.git re PR driver/44986 (-fuse-linker-plugin -save-temps gives resolution file base name of last argument) 2010-11-30 Richard Guenther PR lto/44986 * gcc.c (main): Use the first input with a compiler as infile for link spec processing. From-SVN: r167292 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e52316ab8013..faad0a788e8f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-11-30 Richard Guenther + + PR lto/44986 + * gcc.c (main): Use the first input with a compiler as infile + for link spec processing. + 2010-11-30 Richard Guenther PR lto/45949 diff --git a/gcc/gcc.c b/gcc/gcc.c index 1e525b53c304..d6f0a0812f66 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;