aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-02-05 16:34:40 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-02-05 11:34:40 -0500
commite2bbb66033e804df4bbd7bdcfbab82c22988beaa (patch)
treea9aaf8fb7db718a059f37757e7b9648b129e8af7 /gcc
parent789c026d3b69404b1086b7a9e4fafb1ba610762f (diff)
downloadgcc-e2bbb66033e804df4bbd7bdcfbab82c22988beaa.zip
gcc-e2bbb66033e804df4bbd7bdcfbab82c22988beaa.tar.gz
gcc-e2bbb66033e804df4bbd7bdcfbab82c22988beaa.tar.bz2
mips.c (mips_make_temp_file): Call fatal_io_error, not pfatal_with_name.
* config/mips/mips.c (mips_make_temp_file): Call fatal_io_error, not pfatal_with_name. (mips_asm_file_end): Likewise; also pass more args to fatal_io_error. From-SVN: r39457
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/config/mips/mips.c10
2 files changed, 7 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b300c5c..4a66eca 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,6 +1,8 @@
Mon Feb 5 11:23:16 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* config/mips/mips.c (override_options): Fix typo in last change.
+ (mips_make_temp_file): Call fatal_io_error, not pfatal_with_name.
+ (mips_asm_file_end): Likewise; also pass more args to fatal_io_error.
2001-02-05 Nathan Sidwell <nathan@codesourcery.com>
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index a0e434d..1f19c98 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -5825,7 +5825,7 @@ mips_make_temp_file ()
stream = fopen (temp_filename, "w+");
if (!stream)
- pfatal_with_name (temp_filename);
+ fatal_io_error ("can't open %s", temp_filename);
#ifndef __MSDOS__
/* In MSDOS, we cannot unlink the temporary file until we are finished using
@@ -6075,17 +6075,17 @@ mips_asm_file_end (file)
fprintf (file, "\n\t.text\n");
rewind (asm_out_text_file);
if (ferror (asm_out_text_file))
- fatal_io_error (temp_filename);
+ fatal_io_error ("can't rewind %s", temp_filename);
while ((len = fread (buffer, 1, sizeof (buffer), asm_out_text_file)) > 0)
if ((int) fwrite (buffer, 1, len, file) != len)
- pfatal_with_name (asm_file_name);
+ fatal_io_error ("can't write to %s", asm_file_name);
if (len < 0)
- pfatal_with_name (temp_filename);
+ fatal_io_error ("can't read from %s", temp_filename);
if (fclose (asm_out_text_file) != 0)
- pfatal_with_name (temp_filename);
+ fatal_io_error ("can't close %s", temp_filename);
#ifdef __MSDOS__
unlink (temp_filename);