[LTO][PATCH] Delete temporary ltrans output files

Rafael Espindola espindola@google.com
Tue Dec 9 14:36:00 GMT 2008


> Well, before lto-wrapper was factored out of it, collect2 used to set
> WPA_SAVE_LTRANS if -debug.  lto1 uses this value way, way down the cascade
> of stuff that happens on WPA "link", in order to suppress removal of its
> temporary object files.  Passing a command line flag through this whole
> chain of events was deemed much too disruptive for a debugging feature.
>
> So, setting WPA_SAVE_LTRANS if -debug needs to go back into collect2, for
> lto1.  Given that, isn't it simpler to just use this to retain temporary
> files in the intermediate lto-wrapper, rather changing collect2 to pass
> -debug to lto-wrapper?

Maybe, but I would really like to keep lto-wrapper free of any
environment variable use. It makes it much easier to copy and paste
the command lines, and to see what is different from a collect2 or ld
invocation.

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047



More information about the Gcc-patches mailing list