This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/47480] GCC driver names a resolution file after the last argument to the linker


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]