From: Robin Dapp Date: Tue, 26 Jun 2018 12:23:02 +0000 (+0000) Subject: S/390: Fix mtune default. X-Git-Tag: releases/gcc-7.4.0~307 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e24e825f52a8eff8ca309769d412e00756a1367;p=thirdparty%2Fgcc.git S/390: Fix mtune default. When building with --with-tune=zEC12 and calling the resulting gcc with --march=z13 (no extra -mtune), the binary would unexpectedly be compiled with -march=z13 -mtune=zEC12. This patch avoids using the default tune parameter if -march is specified as argument but the user can still explicitly state -march=z13 -mtune=zEC12. gcc/ChangeLog: 2018-06-26 Robin Dapp * config/s390/s390.h (enum processor_flags): Do not use default tune parameter when -march was specified. From-SVN: r262145 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2156085dec63..ee91650fbcb5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +gcc/ChangeLog: + +2018-06-26 Robin Dapp + + * config/s390/s390.h (enum processor_flags): Do not use + default tune parameter when -march was specified. + 2018-06-26 Jakub Jelinek PR target/86314 diff --git a/gcc/config/s390/s390.h b/gcc/config/s390/s390.h index 68e3876f51d8..f204204b4355 100644 --- a/gcc/config/s390/s390.h +++ b/gcc/config/s390/s390.h @@ -205,7 +205,7 @@ enum processor_flags #define OPTION_DEFAULT_SPECS \ { "mode", "%{!mesa:%{!mzarch:-m%(VALUE)}}" }, \ { "arch", "%{!march=*:-march=%(VALUE)}" }, \ - { "tune", "%{!mtune=*:-mtune=%(VALUE)}" } + { "tune", "%{!mtune=*:%{!march=*:-mtune=%(VALUE)}}" } #ifdef __s390__ extern const char *s390_host_detect_local_cpu (int argc, const char **argv);