summaryrefslogtreecommitdiff
path: root/gcc/config/s390/s390.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/s390/s390.c')
-rw-r--r--gcc/config/s390/s390.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
index 105cf6de618..7b2a6ffd4f0 100644
--- a/gcc/config/s390/s390.c
+++ b/gcc/config/s390/s390.c
@@ -1554,6 +1554,9 @@ s390_handle_arch_option (const char *arg,
*flags = processor_alias_table[i].flags;
return true;
}
+
+ *type = PROCESSOR_max;
+ *flags = 0;
return false;
}
@@ -1614,6 +1617,12 @@ s390_option_override (void)
s390_handle_arch_option (s390_arch_string, &s390_arch, &s390_arch_flags);
}
+ /* This check is triggered when the user specified a wrong -march=
+ string and prevents subsequent error messages from being
+ issued. */
+ if (s390_arch == PROCESSOR_max)
+ return;
+
/* Determine processor to tune for. */
if (s390_tune == PROCESSOR_max)
{