diff options
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/collect2.c | 2 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 6 | ||||
-rw-r--r-- | gcc/gcc.c | 2 | ||||
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/libiberty.h | 4 | ||||
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/choose-temp.c | 5 |
8 files changed, 25 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 837e7c3aa75..258efbbe964 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +Sat Sep 25 09:03:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * collect2.c (make_temp_file): Don't prototype. + + * gcc.c (make_temp_file): Likewise. + + * mips.c (mips_make_temp_file): Renamed from `make_temp_file'. + Sat Sep 25 13:42:15 1999 Nick Clifton <nickc@cygnus.com> * varasm.c (asm_emit_uninitialised): New function: Generate diff --git a/gcc/collect2.c b/gcc/collect2.c index 4e61a0d9b51..2e3d3b1929a 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -52,8 +52,6 @@ Boston, MA 02111-1307, USA. */ /* Obstack allocation and deallocation routines. */ #define obstack_chunk_alloc xmalloc #define obstack_chunk_free free - -extern char *make_temp_file PROTO ((const 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 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 6712d171aec..f24452b9fa9 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -93,7 +93,7 @@ static int m16_check_op PROTO ((rtx, int, int, int)); static void block_move_loop PROTO ((rtx, rtx, int, int, rtx, rtx)); static void block_move_call PROTO ((rtx, rtx, rtx)); -static FILE *make_temp_file PROTO ((void)); +static FILE *mips_make_temp_file PROTO ((void)); static void save_restore_insns PROTO ((int, rtx, long, FILE *)); static void mips16_output_gp_offset PROTO ((FILE *, rtx)); @@ -5378,7 +5378,7 @@ mips_output_external_libcall (file, name) #endif static FILE * -make_temp_file () +mips_make_temp_file () { FILE *stream; const char *base = getenv ("TMPDIR"); @@ -5597,7 +5597,7 @@ mips_asm_file_start (stream) if (TARGET_FILE_SWITCHING && ! TARGET_MIPS16) { asm_out_data_file = stream; - asm_out_text_file = make_temp_file (); + asm_out_text_file = mips_make_temp_file (); } else diff --git a/gcc/gcc.c b/gcc/gcc.c index 343811f3c87..465f52202ff 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -1282,8 +1282,6 @@ static int argbuf_index; #ifdef MKTEMP_EACH_FILE -extern char *make_temp_file PROTO((const char *)); - /* This is the list of suffixes and codes (%g/%u/%U) and the associated temp file. */ diff --git a/include/ChangeLog b/include/ChangeLog index b70a8523384..c9e21cea5e2 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +1999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * libiberty.h (make_temp_file): Add a prototype. + Tue Sep 14 00:35:02 1999 Marc Espie <espie@cvs.openbsd.org> * libiberty.h (basename): OpenBSD has a correct prototype. diff --git a/include/libiberty.h b/include/libiberty.h index 6832c7e937b..9a32840f667 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -64,6 +64,10 @@ extern long get_run_time PARAMS ((void)); extern char *choose_temp_base PARAMS ((void)); +/* Return a temporary file name or NULL if unable to create one. */ + +extern char *make_temp_file PARAMS ((const char *)); + /* Allocate memory filled with spaces. Allocates using malloc. */ extern const char *spaces PARAMS ((int count)); diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index de9309ccb7c..6b6a6434b9f 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +1999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * choose-temp.c: Remove obsolete comment about gcc. + (make_temp_file): Constify a char*. + Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * xmemdup.c: Include sys/types.h. diff --git a/libiberty/choose-temp.c b/libiberty/choose-temp.c index be023791d4c..826d818ed62 100644 --- a/libiberty/choose-temp.c +++ b/libiberty/choose-temp.c @@ -19,9 +19,6 @@ Boston, MA 02111-1307, USA. */ /* This file exports two functions: choose_temp_base and make_temp_file. */ -/* This file lives in at least two places: libiberty and gcc. - Don't change one without the other. */ - #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -148,7 +145,7 @@ choose_temp_base () char * make_temp_file (suffix) - char *suffix; + const char *suffix; { char *base = 0; char *temp_filename; |