aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/cppspec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-family/cppspec.c')
-rw-r--r--gcc/c-family/cppspec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/c-family/cppspec.c b/gcc/c-family/cppspec.c
index a49371a..55e368b 100644
--- a/gcc/c-family/cppspec.c
+++ b/gcc/c-family/cppspec.c
@@ -89,7 +89,8 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options,
case OPT_S:
case OPT_c:
- fatal_error ("%qs is not a valid option to the preprocessor",
+ fatal_error (input_location,
+ "%qs is not a valid option to the preprocessor",
decoded_options[i].orig_option_with_args_text);
return;
@@ -108,7 +109,7 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options,
seen_input++;
if (seen_input == 3)
{
- fatal_error ("too many input files");
+ fatal_error (input_location, "too many input files");
return;
}
else if (seen_input == 2)