This is the mail archive of the gcc-help@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]

Re: 4.6.1-RC1: Using LTO in canadian cross


Georg-Johann Lay writes:

> 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.

That should probably be recognized in gcc/testsuite/lib/prune.exp


> 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]

That seems like a bug.

Please report these; they ought to be fixed.  Thanks.

Ian


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