From 757dda1de05e322415f3cf26078527626a1c7da5 Mon Sep 17 00:00:00 2001
From: Maximilian Downey Twiss <[email protected]>
Date: Fri, 18 Nov 2022 14:35:41 +1100
Subject: [PATCH 32/56] java: Replace pfatal_with_name with fatal_error.
gcc/java/ChangeLog:
* jvspec.cc (lang_specific_driver): Replace pfatal_with_name with fatal_error.
---
gcc/java/jvspec.cc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gcc/java/jvspec.cc b/gcc/java/jvspec.cc
index 6b138d4cce8..73985751c86 100644
--- a/gcc/java/jvspec.cc
+++ b/gcc/java/jvspec.cc
@@ -432,7 +432,8 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options,
record_temp_file (filelist_filename, ! saw_save_temps, 0);
filelist_file = fopen (filelist_filename, "w");
if (filelist_file == NULL)
- pfatal_with_name (filelist_filename);
+ fatal_error (input_location, "cannot read spec file %qs: %m",
+ filelist_filename);
num_args -= java_files_count + class_files_count + zip_files_count;
num_args += 3; /* for the combined arg "-xjava", and "-xnone" */
}
@@ -577,7 +578,8 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options,
if (combine_inputs)
{
if (fclose (filelist_file))
- pfatal_with_name (filelist_filename);
+ fatal_error (input_location, "cannot read spec file %qs: %m",
+ filelist_filename);
}
/* If we saw no -O or -g option, default to -g1, for javac compatibility. */
--
2.38.1