diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-30 01:41:45 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-30 01:41:45 +0000 |
commit | e8b04076af0e8790a0a219260f17f67d43d68500 (patch) | |
tree | 0003a692de847d6e5ea1c512950f3fe3d7f44a1f /gcc/gcc.c | |
parent | 80b3ea022f0ed1884f83fcf4fb4092f2a59477ed (diff) | |
download | gcc-e8b04076af0e8790a0a219260f17f67d43d68500.tar.gz |
* choose-temp.c (make_temp_file): Accept new argument for the
file suffix to use. Allocate space for it and add it to the
template.
* mkstemp.c (mkstemps): Renamed from mkstemp. Accept new argument
for the length of the suffix. Update template struture checks
to handle optinal suffix.
* collect2.c (make_temp_file): Update prototype.
(main): Put proper suffixes on temporary files.
* gcc.c (make_temp_file): Update prototype.
(do_spec_1): Put proper suffixes on temporary files.
Should fix irix build problems.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20812 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c index 7117d603814..bb33edf4039 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -1276,7 +1276,7 @@ static int argbuf_index; #ifdef MKTEMP_EACH_FILE -extern char *make_temp_file PROTO((void)); +extern char *make_temp_file PROTO((char *)); /* This is the list of suffixes and codes (%g/%u/%U) and the associated temp file. */ @@ -3524,7 +3524,7 @@ do_spec_1 (spec, inswitch, soft_matched_part) t->length = p - suffix; t->suffix = save_string (suffix, p - suffix); t->unique = (c != 'g'); - temp_filename = make_temp_file (); + temp_filename = make_temp_file (suffix); temp_filename_length = strlen (temp_filename); t->filename = temp_filename; t->filename_length = temp_filename_length; |