2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-03-28 21:31:32 +08:00

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
This commit is contained in:
Richard Guenther 2010-11-30 10:00:51 +00:00 committed by Richard Biener
parent 0430f80c2f
commit 42113d6b9d
2 changed files with 8 additions and 1 deletions

@ -1,3 +1,9 @@
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

@ -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;