diff options
author | Andreas Krebbel <krebbel@linux.ibm.com> | 2024-04-22 11:07:43 +0200 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.ibm.com> | 2024-04-22 11:08:23 +0200 |
commit | 1b7785fdf95d179209f7277dd0ef912562130a39 (patch) | |
tree | ba86cb9e3c486c643fd78642f8956542ea717a87 /gcc | |
parent | b991193eb8a79ec7562f3de3df866df9f041015a (diff) | |
download | gcc-1b7785fdf95d179209f7277dd0ef912562130a39.zip gcc-1b7785fdf95d179209f7277dd0ef912562130a39.tar.gz gcc-1b7785fdf95d179209f7277dd0ef912562130a39.tar.bz2 |
s390x: Do not default to -mvx for -mesa
We currently enable the vector extensions also for -march=z13 -m31
-mesa which is very wrong.
gcc/ChangeLog:
* config/s390/s390.cc (s390_option_override_internal): Check zarch
flag before enabling -mvx.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/s390/s390.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/s390/s390.cc b/gcc/config/s390/s390.cc index bf46eab..5968808 100644 --- a/gcc/config/s390/s390.cc +++ b/gcc/config/s390/s390.cc @@ -16104,7 +16104,7 @@ s390_option_override_internal (struct gcc_options *opts, } else { - if (TARGET_CPU_VX_P (opts)) + if (TARGET_CPU_VX_P (opts) && TARGET_ZARCH_P (opts->x_target_flags)) /* Enable vector support if available and not explicitly disabled by user. E.g. with -m31 -march=z13 -mzarch */ opts->x_target_flags |= MASK_OPT_VX; |