diff options
author | rupp <rupp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-07-29 19:30:12 +0000 |
---|---|---|
committer | rupp <rupp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-07-29 19:30:12 +0000 |
commit | 03712ddbbe282ddc2d3dcded5d3e77f5601e077d (patch) | |
tree | 633ff9003c9bec16de43c6a8219b346199f0ffd8 /libiberty/make-temp-file.c | |
parent | 9aba7881b90193f11d1248f8d4356037fe1eac92 (diff) | |
download | gcc-03712ddbbe282ddc2d3dcded5d3e77f5601e077d.tar.gz |
* make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150221 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/make-temp-file.c')
-rw-r--r-- | libiberty/make-temp-file.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libiberty/make-temp-file.c b/libiberty/make-temp-file.c index eadcf850213..13e19256534 100644 --- a/libiberty/make-temp-file.c +++ b/libiberty/make-temp-file.c @@ -1,5 +1,5 @@ /* Utility to pick a temporary filename prefix. - Copyright (C) 1996, 1997, 1998, 2001 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 2001, 2009 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or @@ -111,9 +111,14 @@ choose_tmpdir (void) char *tmpdir; unsigned int len; +#ifdef VMS + /* Try VMS standard temp logical. */ + base = try_dir ("/sys$scratch", base); +#else base = try_dir (getenv ("TMPDIR"), base); base = try_dir (getenv ("TMP"), base); base = try_dir (getenv ("TEMP"), base); +#endif #ifdef P_tmpdir base = try_dir (P_tmpdir, base); |