diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-27 00:43:42 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-27 00:43:42 +0000 |
commit | 07a3679ccac056f06fc4c39ca06ff6202d30f767 (patch) | |
tree | aecc61329158ea2ca9869040ffcb39c5244db6cc /gcc/gcc.c | |
parent | dc383ea9625ddb0b9b9e976bcdb0d1c61494bf3f (diff) | |
download | gcc-07a3679ccac056f06fc4c39ca06ff6202d30f767.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20746 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c index f9cd0efb945..5a752a37476 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). |