Re: [PATCH] Reduce temporary disk-space usage by LTO ltrans phase

2011-12-16 Thread Richard Guenther
On Thu, 15 Dec 2011, Andrew Pinski wrote: > On Thu, Dec 15, 2011 at 4:17 AM, Richard Guenther wrote: > > +               fprintf (mstream, "\t@-touch -r %s %s.tem && mv %s.tem > > %s\n", > > +                        input_name, input_name, input_name, input_name); > > Is touch -r portable? Sho

Re: [PATCH] Reduce temporary disk-space usage by LTO ltrans phase

2011-12-15 Thread Andrew Pinski
On Thu, Dec 15, 2011 at 4:17 AM, Richard Guenther wrote: > +               fprintf (mstream, "\t@-touch -r %s %s.tem && mv %s.tem %s\n", > +                        input_name, input_name, input_name, input_name); Is touch -r portable? Thanks, Andrew Pinski

[PATCH] Reduce temporary disk-space usage by LTO ltrans phase

2011-12-15 Thread Richard Guenther
The following patch removes ltrans inputs as soon as they have been processed by the ltrans phase. In parallel mode, which is controlled by make, this is done by truncating the input file, preserving its timestamp. Thus the patch should at most reduce the peak disk-space needs by a factor of two