summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-30 01:41:45 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-30 01:41:45 +0000
commite8b04076af0e8790a0a219260f17f67d43d68500 (patch)
tree0003a692de847d6e5ea1c512950f3fe3d7f44a1f /gcc/collect2.c
parent80b3ea022f0ed1884f83fcf4fb4092f2a59477ed (diff)
downloadgcc-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/collect2.c')
-rw-r--r--gcc/collect2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 7c6e2b3adc0..442af243459 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -60,7 +60,7 @@ Boston, MA 02111-1307, USA. */
#define WEXITSTATUS(S) (((S) & 0xff00) >> 8)
#endif
-extern char *make_temp_file ();
+extern char *make_temp_file PROTO ((char *));
/* On certain systems, we have code that works by scanning the object file
directly. But this code uses system-specific header files and library
@@ -1129,13 +1129,13 @@ main (argc, argv)
*ld1++ = *ld2++ = ld_file_name;
/* Make temp file names. */
- c_file = make_temp_file ();
- o_file = make_temp_file ();
+ c_file = make_temp_file (".c");
+ o_file = make_temp_file (".o");
#ifdef COLLECT_EXPORT_LIST
- export_file = make_temp_file ();
- import_file = make_temp_file ();
+ export_file = make_temp_file (".x");
+ import_file = make_temp_file (".p");
#endif
- ldout = make_temp_file ();
+ ldout = make_temp_file (".ld");
*c_ptr++ = c_file_name;
*c_ptr++ = "-lang-c";
*c_ptr++ = "-c";