This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: 4.6.1-RC1: Using LTO in canadian cross
- From: Georg-Johann Lay <avr at gjlay dot de>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 05 Jul 2011 14:17:40 +0200
- Subject: Re: 4.6.1-RC1: Using LTO in canadian cross
- References: <4E032E98.2010709@gjlay.de> <mcroc1ocu9n.fsf@coign.corp.google.com>
Ian Lance Taylor wrote:
> Georg-Johann Lay writes:
>> Yet another question: The above run generated temporary file names like
>> c:\Temp\cc0oaaaa.res which is a bit annoying when comparing testsuite
>> .log files. Is there a way so that different runs generate same file
>> name(s)?
>
> The simplest way is to use the --save-temps option.
>
> Ian
That does not work because then all LTO test cases fail.
lto-wrapper.c has:
...
int debug; /* true if -save-temps. */
...
static void
maybe_unlink_file (const char *file)
{
if (! debug)
{
if (unlink_if_ordinary (file)
&& errno != ENOENT)
fatal_perror ("deleting LTRANS file %s", file);
}
else
fprintf (stderr, "[Leaving LTRANS %s]\n", file);
}
and the additional "[Leave LTRANS..." output makes all LTO tests fail.
Even with -save-temps there are non-reproduceable file names (here
from mingw):
[Leaving LTRANS C:\Temp\ccw1rUwh.args]
[Leaving LTRANS ab.elf.ltrans.out]
[Leaving LTRANS C:\Temp\ccJbGYVI.args]
[Leaving LTRANS ab.elf.ltrans0.o]
Johann