This is the mail archive of the gcc-patches@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: [RFA]: Add make_cwd_temp_file to libiberty


On Sat, 18 Apr 2009, Diego Novillo wrote:

> On Fri, Apr 17, 2009 at 21:20, DJ Delorie <dj@redhat.com> wrote:
> 
> > What if $cwd isn't writable?
> 
> make_temp_file_common will abort, just like it would if TMPDIR wasn't
> writable.  But I think I'm missing your point, since this is existing
> behaviour that this patch doesn't change.

It's entirely valid to compile from within a readonly source directory 
with -o options pointing to another object directory and with temporary 
files going in TMPDIR.  This should continue to work with LTO; you should 
still be able to build with the working directory unwritable and source 
files in unwritable directories if all output options point to files in 
writable directories and the normal rules for finding a temporary 
directory find a writable directory.

-- 
Joseph S. Myers
joseph@codesourcery.com


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