[Patch] lto-wrapper: Use nontemp filename with -save-temps

Richard Biener rguenther@suse.de
Tue Oct 13 12:56:26 GMT 2020


On Tue, 13 Oct 2020, Tobias Burnus wrote:

> There are still some @cc... files under /tmp,
> but at lease another file is now at the proper place.
> 
> This patch generates (for a.out and -save-temps)
> the file a.crtoffloadtable.o.
> 
> (I have not fully digested the LTO calls, but I think
> this file is only created once and not by concurrent
> lto-wrapper runs.)
> 
> OK?

OK.

Richard.

> Tobias
> 
> PS: After this patch, there are still some @... files,
> e.g. ccKqLnBY.ofldlist (generated by lto-plugin/lto-plugin.c)
> and those generated by collect-utils.c's fork_execute,
> invoked by config/nvptx/mkoffload.c, config/gcn/mkoffload.c,
> and lto-wrapper.c (with use_atfile = true).
> 
> -----------------
> Mentor Graphics (Deutschland) GmbH, Arnulfstra?e 201, 80634 M?nchen / Germany
> Registergericht M?nchen HRB 106955, Gesch?ftsf?hrer: Thomas Heurung, Alexander
> Walter
> 

-- 
Richard Biener <rguenther@suse.de>
SUSE Software Solutions Germany GmbH, Maxfeldstrasse 5, 90409 Nuernberg,
Germany; GF: Felix Imend


More information about the Gcc-patches mailing list