aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-06-30 01:41:45 +0000
committerJeff Law <law@gcc.gnu.org>1998-06-29 19:41:45 -0600
commit20f2d03a8ebe8a679ebfd477ce1dd74f1e94a195 (patch)
tree0003a692de847d6e5ea1c512950f3fe3d7f44a1f /gcc/gcc.c
parentaf24816977a00f6a1b9ede9b4a5291b96b6c67eb (diff)
downloadgcc-20f2d03a8ebe8a679ebfd477ce1dd74f1e94a195.zip
gcc-20f2d03a8ebe8a679ebfd477ce1dd74f1e94a195.tar.gz
gcc-20f2d03a8ebe8a679ebfd477ce1dd74f1e94a195.tar.bz2
choose-temp.c (make_temp_file): Accept new argument for the file suffix to use.
* 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. From-SVN: r20812
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 7117d60..bb33edf 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;