]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - libiberty/make-temp-file.c
Synchronize libiberty sources (and include/demangle.h) with GCC master version
[thirdparty/binutils-gdb.git] / libiberty / make-temp-file.c
index 7465cec5ea6a7dcd31a17d97f5b85aa30001f2b6..31f87fbcfdeb3a9e978b97c5330d319821f7d314 100644 (file)
@@ -81,8 +81,6 @@ try_dir (const char *dir, const char *base)
 }
 
 static const char tmp[] = { DIR_SEPARATOR, 't', 'm', 'p', 0 };
-static const char usrtmp[] =
-{ DIR_SEPARATOR, 'u', 's', 'r', DIR_SEPARATOR, 't', 'm', 'p', 0 };
 static const char vartmp[] =
 { DIR_SEPARATOR, 'v', 'a', 'r', DIR_SEPARATOR, 't', 'm', 'p', 0 };
 
@@ -129,9 +127,8 @@ choose_tmpdir (void)
        base = try_dir (P_tmpdir, base);
 #endif
 
-      /* Try /var/tmp, /usr/tmp, then /tmp.  */
+      /* Try /var/tmp, then /tmp.  */
       base = try_dir (vartmp, base);
-      base = try_dir (usrtmp, base);
       base = try_dir (tmp, base);
       
       /* If all else fails, use the current directory!  */