PATCH: Add -plugin-save-temps

Alan Modra amodra@gmail.com
Mon May 16 15:21:00 GMT 2011


On Mon, May 16, 2011 at 07:35:35AM -0700, H.J. Lu wrote:
> On Mon, May 16, 2011 at 7:21 AM, Alan Modra <amodra@gmail.com> wrote:
> > On Sun, May 15, 2011 at 02:15:03PM -0700, H.J. Lu wrote:
> >>       (plugin_call_cleanup): Don't call plugin cleanup_handler if
> >>       plugin_save_temps is true.
> >
> > Isn't this really just covering for gcc -save-temps bugs?
> >
> 
> It isn't straight forward since LTO plugin is invoked by linker,
> not gcc driver. Ultimately LTO cleanup is controlled by linker.

Yes, but lto-wrapper modifies its cleanup according to whether
COLLECT_GCC_OPTIONS contains -save-temps.  Why can't lto-plugin do the
same?

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list