diff options
Diffstat (limited to 'contrib/gcc/make-temp-file.c')
-rw-r--r-- | contrib/gcc/make-temp-file.c | 6 |
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) |