diff options
author | etheisen <etheisen@cvs.openbsd.org> | 1996-02-18 06:50:59 +0000 |
---|---|---|
committer | etheisen <etheisen@cvs.openbsd.org> | 1996-02-18 06:50:59 +0000 |
commit | 2ffe1dbb8b6e588393c4a7f4f7a17c4a22fe72ef (patch) | |
tree | d3ae6543ed6d05bddc8923b3a29c4db2066d2438 /gnu | |
parent | 5b622e1305984d7eab1704279bfeb145885b36a3 (diff) |
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.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/gcc/collect2.c | 2 | ||||
-rw-r--r-- | gnu/usr.bin/gcc/config/mips/mips.c | 2 | ||||
-rw-r--r-- | gnu/usr.bin/gcc/cp/g++.c | 2 | ||||
-rw-r--r-- | gnu/usr.bin/gcc/gcc.c | 2 |
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"), |