aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 7bc6ac9..a644d08 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -7699,13 +7699,13 @@ version_compare_spec_function (int argc, const char **argv)
bool result;
if (argc < 3)
- abort ();
+ fatal ("too few arguments to %%:version-compare");
if (argv[0][0] == '\0')
abort ();
if ((argv[0][1] == '<' || argv[0][1] == '>') && argv[0][0] != '!')
nargs = 2;
if (argc != nargs + 3)
- abort ();
+ fatal ("too many arguments to %%:version-compare");
switch_len = strlen (argv[nargs + 1]);
for (i = 0; i < n_switches; i++)
@@ -7746,7 +7746,7 @@ version_compare_spec_function (int argc, const char **argv)
break;
default:
- abort ();
+ fatal ("unknown operator %qs in %%:version-compare", argv[0]);
}
if (! result)
return NULL;