aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-06-27 00:43:42 +0000
committerJeff Law <law@gcc.gnu.org>1998-06-26 18:43:42 -0600
commit003ac91d4bf97df1bf9a373b4842193448da2609 (patch)
treeaecc61329158ea2ca9869040ffcb39c5244db6cc /gcc/gcc.c
parent463b558b823b2894e37e274e21650b5947e736a3 (diff)
downloadgcc-003ac91d4bf97df1bf9a373b4842193448da2609.zip
gcc-003ac91d4bf97df1bf9a373b4842193448da2609.tar.gz
gcc-003ac91d4bf97df1bf9a373b4842193448da2609.tar.bz2
choose-temp.c (choose_temp_base): Remove MPW bits.
* choose-temp.c (choose_temp_base): Remove MPW bits. Use mkstemp instead of mktemp. * gcc.c (MKTEMP_EACH_FILE): Define. (main): No need to call choose_temp_base if we are going to use choose_temp_base to create each file later. * mkstemp.c: New file. Adapted from glibc. * Makefile.in (xgcc, colect2, protoize, unprotoize): Link in mkstemp.o (mkstemp.o): Add dependencies. From-SVN: r20746
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index f9cd0ef..5a752a3 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1271,6 +1271,9 @@ static int argbuf_length;
static int argbuf_index;
+/* We want this on by default all the time now. */
+#define MKTEMP_EACH_FILE
+
#ifdef MKTEMP_EACH_FILE
/* This is the list of suffixes and codes (%g/%u/%U) and the associated
temp file. */
@@ -4547,8 +4550,10 @@ main (argc, argv)
/* Choose directory for temp files. */
+#ifndef MKTEMP_EACH_FILE
temp_filename = choose_temp_base ();
temp_filename_length = strlen (temp_filename);
+#endif
/* Make a table of what switches there are (switches, n_switches).
Make a table of specified input files (infiles, n_infiles).