aboutsummaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorDouglas B Rupp <rupp@gnat.com>2009-07-29 19:30:12 +0000
committerDouglas Rupp <rupp@gcc.gnu.org>2009-07-29 19:30:12 +0000
commit2958f4a215223d78c9deb984cadfc410446e4e48 (patch)
tree633ff9003c9bec16de43c6a8219b346199f0ffd8 /libiberty
parent95bfca5ed64babee735a98dc1f7e31bce0590441 (diff)
downloadgcc-2958f4a215223d78c9deb984cadfc410446e4e48.zip
gcc-2958f4a215223d78c9deb984cadfc410446e4e48.tar.gz
gcc-2958f4a215223d78c9deb984cadfc410446e4e48.tar.bz2
make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
* make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS. From-SVN: r150221
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog4
-rw-r--r--libiberty/make-temp-file.c7
2 files changed, 10 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 25c6cd1..16f541e 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-29 Douglas B Rupp <rupp@gnat.com>
+
+ * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
+
2009-07-27 Douglas B Rupp <rupp@gnat.com>
* pex-unix.c (vfork): Remove VMS specific definition (get from header
diff --git a/libiberty/make-temp-file.c b/libiberty/make-temp-file.c
index eadcf85..13e1925 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);