This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/47480] GCC driver names a resolution file after the last argument to the linker
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Jan 2011 11:11:46 +0000
- Subject: [Bug driver/47480] GCC driver names a resolution file after the last argument to the linker
- Auto-submitted: auto-generated
- References: <bug-47480-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47480
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-27 11:11:43 UTC ---
I thought I improved the situation with
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.
the original intent was to name the resolution file after the linker
output file name (in case of -save-temps, of course), but that is not
readily available. Nor is it possible to avoid the fancy name
assinging -save-temps does (a tmpfile would be ok as well). All this
requires adding new spec modifiers - ugh.
Thus,
-plugin-opt=-fresolution=%u.res \
the %u needs to be replaced with something that is a better fit
in the -save-temps case (which does not exist).
Btw, your testcase produces t.res for me, not -s.res, so I can't confirm
this bug (the 4.5 branch is probably still affected by the original bug).
t isn't the linker output (a.out is).
So, please double-check your GCC version and paste -v output.