From: Zack Weinberg Date: Sun, 25 Feb 2001 17:23:42 +0000 (+0000) Subject: config.gcc: Put back pa/t-openbsd and rs6000/t-openbsd. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1b71de925ef2c05f73cbc792541d768abdbb2ce;p=gcc.git config.gcc: Put back pa/t-openbsd and rs6000/t-openbsd. * config.gcc: Put back pa/t-openbsd and rs6000/t-openbsd. * config/mips/mips.c (mips_make_temp_file): Set temp_filename properly. (mips_asm_file_end): Free temp_filename here. From-SVN: r40058 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6d54957fde3..7234ccde2d6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2001-02-25 Zack Weinberg + + * config.gcc: Put back pa/t-openbsd and rs6000/t-openbsd. + * config/mips/mips.c (mips_make_temp_file): Set temp_filename + properly. + (mips_asm_file_end): Free temp_filename here. + Sun Feb 25 08:34:23 2001 Richard Kenner * config/i386/i386-protos.h (ix86_set_move_mem_attrs): Move decl. diff --git a/gcc/config.gcc b/gcc/config.gcc index a58a6736e63..a9ea215d6d9 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -675,6 +675,7 @@ hppa*-*-linux*) ;; hppa*-*-openbsd*) target_cpu_default="MASK_PA_11" + tmake_file=pa/t-openbsd ;; hppa1.1-*-rtems*) tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h" @@ -2701,7 +2702,7 @@ romp-*-openbsd*) # Nothing special ;; powerpc-*-openbsd*) - tmake_file="${tmake_file} rs6000/t-rs6000" + tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" ;; powerpc-*-beos*) cpu_type=rs6000 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 0c18ddb2a47..2cc0ccbbb9f 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -5788,12 +5788,11 @@ static FILE * mips_make_temp_file () { FILE *stream; - char *filename = make_temp_file (0); + temp_filename = make_temp_file (0); stream = fopen (filename, "w+"); if (!stream) - fatal_io_error ("can't open %s", filename); - free (filename); + fatal_io_error ("can't open %s", temp_filename); return stream; } @@ -6049,6 +6048,7 @@ mips_asm_file_end (file) fatal_io_error ("can't close %s", temp_filename); unlink (temp_filename); + free (temp_filename); } }