summaryrefslogtreecommitdiffstats
path: root/contrib/gcc
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-05-14 00:33:44 +0000
committerobrien <obrien@FreeBSD.org>2002-05-14 00:33:44 +0000
commitb028831d22d44b921c59e2a69aa1e904459aac6d (patch)
treed042c84c36c1dda768d88a91eddb39525b852c4f /contrib/gcc
parent1e93bf0871ff1638dc1e4458d6dfe0529a9871e6 (diff)
downloadFreeBSD-src-b028831d22d44b921c59e2a69aa1e904459aac6d.zip
FreeBSD-src-b028831d22d44b921c59e2a69aa1e904459aac6d.tar.gz
Merge choose-temp.c rev 1.2 (use /tmp 1st, and then /var/tmp) into GCC 3.1.
Diffstat (limited to 'contrib/gcc')
-rw-r--r--contrib/gcc/make-temp-file.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/gcc/make-temp-file.c b/contrib/gcc/make-temp-file.c
index 8833504..563bd46 100644
--- a/contrib/gcc/make-temp-file.c
+++ b/contrib/gcc/make-temp-file.c
@@ -17,6 +17,8 @@ License along with libiberty; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+/* $FreeBSD$ */
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -112,10 +114,10 @@ choose_tmpdir ()
base = try (P_tmpdir, base);
#endif
- /* Try /var/tmp, /usr/tmp, then /tmp. */
+ /* Try /tmp, /var/tmp, then /usr/tmp. */
+ base = try (tmp, base);
base = try (vartmp, base);
base = try (usrtmp, base);
- base = try (tmp, base);
/* If all else fails, use the current directory! */
if (base == 0)
OpenPOWER on IntegriCloud