mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-19 07:19:45 +08:00
libiberty.h (make_temp_file): Add a prototype.
include: * libiberty.h (make_temp_file): Add a prototype. libiberty: * choose-temp.c: Remove obsolete comment about gcc. (make_temp_file): Constify a char*. gcc: * 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'. From-SVN: r29662
This commit is contained in:
parent
b869419595
commit
5a657fc371
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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. */
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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));
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user