summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoretheisen <etheisen@openbsd.org>1996-02-18 06:50:33 +0000
committeretheisen <etheisen@openbsd.org>1996-02-18 06:50:33 +0000
commita5fb27a485675d0f792c6f6be00c9af11eefaeeb (patch)
tree6e6ba6b2f4f085767606775a24beb706b90a0c6d
parentMore files to shred for cleandir. (diff)
downloadwireguard-openbsd-a5fb27a485675d0f792c6f6be00c9af11eefaeeb.tar.xz
wireguard-openbsd-a5fb27a485675d0f792c6f6be00c9af11eefaeeb.zip
gcc and g++ now use /tmp instead of /var/tmp. #ifdef 0's were used to
elminate gcc's use of P_tmpdir. P_tmpdir was defined in stdio.h and includes order in gcc prevented overriding it.
-rw-r--r--gnu/usr.bin/gcc/collect2.c2
-rw-r--r--gnu/usr.bin/gcc/config/mips/mips.c2
-rw-r--r--gnu/usr.bin/gcc/cp/g++.c2
-rw-r--r--gnu/usr.bin/gcc/gcc.c2
4 files changed, 8 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/collect2.c b/gnu/usr.bin/gcc/collect2.c
index a74a7f06992..ac040c693e4 100644
--- a/gnu/usr.bin/gcc/collect2.c
+++ b/gnu/usr.bin/gcc/collect2.c
@@ -642,10 +642,12 @@ choose_temp_base ()
if (base == (char *)0)
{
+#if 0 /* XXX - P_tmpdir is not /tmp - etheisen */
#ifdef P_tmpdir
if (access (P_tmpdir, R_OK | W_OK) == 0)
base = P_tmpdir;
#endif
+#endif /* XXX */
if (base == (char *)0)
{
if (access ("/usr/tmp", R_OK | W_OK) == 0)
diff --git a/gnu/usr.bin/gcc/config/mips/mips.c b/gnu/usr.bin/gcc/config/mips/mips.c
index a978c198dba..205d81f3ed4 100644
--- a/gnu/usr.bin/gcc/config/mips/mips.c
+++ b/gnu/usr.bin/gcc/config/mips/mips.c
@@ -3961,11 +3961,13 @@ make_temp_file ()
if (base == (char *)0)
{
+#ifdef 0 /* XXX - P_tmpdir is not /tmp - erik */
#ifdef P_tmpdir
if (access (P_tmpdir, R_OK | W_OK) == 0)
base = P_tmpdir;
else
#endif
+#endif /* XXX */
if (access ("/usr/tmp", R_OK | W_OK) == 0)
base = "/usr/tmp/";
else
diff --git a/gnu/usr.bin/gcc/cp/g++.c b/gnu/usr.bin/gcc/cp/g++.c
index 7d4897dadcc..d51ae49d50c 100644
--- a/gnu/usr.bin/gcc/cp/g++.c
+++ b/gnu/usr.bin/gcc/cp/g++.c
@@ -280,9 +280,11 @@ choose_temp_base ()
base = choose_temp_base_try (getenv ("TMP"), base);
base = choose_temp_base_try (getenv ("TEMP"), base);
+#if 0 /* XXX - P_tmpdir is not /tmp - etheisen */
#ifdef P_tmpdir
base = choose_temp_base_try (P_tmpdir, base);
#endif
+#endif /* XXX */
base = choose_temp_base_try ("/usr/tmp", base);
base = choose_temp_base_try ("/tmp", base);
diff --git a/gnu/usr.bin/gcc/gcc.c b/gnu/usr.bin/gcc/gcc.c
index 7622771d8ff..fc6ca47e93b 100644
--- a/gnu/usr.bin/gcc/gcc.c
+++ b/gnu/usr.bin/gcc/gcc.c
@@ -1571,9 +1571,11 @@ choose_temp_base ()
base = choose_temp_base_try (getenv ("TMP"), base);
base = choose_temp_base_try (getenv ("TEMP"), base);
+#ifdef 0 /* XXX - P_tmpdir is not /tmp - etheisen */
#ifdef P_tmpdir
base = choose_temp_base_try (P_tmpdir, base);
#endif
+#endif /* XXX */
base = choose_temp_base_try (concat4 (dir_separator_str, "usr",
dir_separator_str, "tmp"),