config.gcc: Put back pa/t-openbsd and rs6000/t-openbsd.
authorZack Weinberg <zackw@stanford.edu>
Sun, 25 Feb 2001 17:23:42 +0000 (17:23 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sun, 25 Feb 2001 17:23:42 +0000 (17:23 +0000)
        * 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

gcc/ChangeLog
gcc/config.gcc
gcc/config/mips/mips.c

index 6d54957fde397271db0dc1d9b0e06d5fb3119b89..7234ccde2d6587176307b793838f0b7a298c6a0b 100644 (file)
@@ -1,3 +1,10 @@
+2001-02-25  Zack Weinberg  <zackw@stanford.edu>
+
+       * 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  <kenner@vlsi1.ultra.nyu.edu>
 
        * config/i386/i386-protos.h (ix86_set_move_mem_attrs): Move decl.
index a58a6736e63766cd1f1c0cda2bf7d24cbd1f8ed0..a9ea215d6d9e9ceeadc4ffe20be2dc28e3d18b3e 100644 (file)
@@ -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
index 0c18ddb2a47387fe1a19449da976bb3871415592..2cc0ccbbb9f73084a13f7f5aec86ab655873cb48 100644 (file)
@@ -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;
 }
 \f
@@ -6049,6 +6048,7 @@ mips_asm_file_end (file)
        fatal_io_error ("can't close %s", temp_filename);
 
       unlink (temp_filename);
+      free (temp_filename);
     }
 }