diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2017-09-23 16:26:06 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2017-09-23 16:26:06 +0200 |
commit | 2b8e2e6a3d5588e162f1079091741c6b4ca01a10 (patch) | |
tree | fb11fb797623093da24203eaa5d93ab3078c2ff5 | |
parent | d16d81b54f29fdb8901d01125bd00464f551c1d7 (diff) | |
download | gcc-2b8e2e6a3d5588e162f1079091741c6b4ca01a10.zip gcc-2b8e2e6a3d5588e162f1079091741c6b4ca01a10.tar.gz gcc-2b8e2e6a3d5588e162f1079091741c6b4ca01a10.tar.bz2 |
re PR bootstrap/82306 (Revision r253089 breaks bootstrap on Darwin)
PR bootstrap/82306
* config/i386/i386.opt (mprefer-avx256): Use
ix86_target_flags variable.
* config/i386/i386.c (ix86_target_string): Move
-mprefer-avx256 to flag2_opts.
From-SVN: r253118
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386.opt | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index af92ec3..041e47f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2017-09-23 Uros Bizjak <ubizjak@gmail.com> + + PR bootstrap/82306 + * config/i386/i386.opt (mprefer-avx256): Use + ix86_target_flags variable. + * config/i386/i386.c (ix86_target_string): Move + -mprefer-avx256 to flag2_opts. + 2017-09-22 Jakub Jelinek <jakub@redhat.com> PR middle-end/35691 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 5e8f58c..7434aae 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -4751,7 +4751,6 @@ ix86_target_string (HOST_WIDE_INT isa, HOST_WIDE_INT isa2, { "-mavx256-split-unaligned-load", MASK_AVX256_SPLIT_UNALIGNED_LOAD }, { "-mavx256-split-unaligned-store", MASK_AVX256_SPLIT_UNALIGNED_STORE }, { "-mprefer-avx128", MASK_PREFER_AVX128 }, - { "-mprefer-avx256", MASK_PREFER_AVX256 }, { "-mcall-ms2sysv-xlogues", MASK_CALL_MS2SYSV_XLOGUES } }; @@ -4759,6 +4758,7 @@ ix86_target_string (HOST_WIDE_INT isa, HOST_WIDE_INT isa2, static struct ix86_target_opts flag2_opts[] = { { "-mgeneral-regs-only", OPTION_MASK_GENERAL_REGS_ONLY }, + { "-mprefer-avx256", OPTION_MASK_PREFER_AVX256 }, }; const char *opts[ARRAY_SIZE (isa_opts) + ARRAY_SIZE (isa2_opts) diff --git a/gcc/config/i386/i386.opt b/gcc/config/i386/i386.opt index 1c76b71..9064bf0 100644 --- a/gcc/config/i386/i386.opt +++ b/gcc/config/i386/i386.opt @@ -592,7 +592,7 @@ Target Report Mask(PREFER_AVX128) Save Use 128-bit AVX instructions instead of 256-bit AVX instructions in the auto-vectorizer. mprefer-avx256 -Target Report Mask(PREFER_AVX256) Save +Target Report Mask(PREFER_AVX256) Var(ix86_target_flags) Save Use 256-bit AVX instructions instead of 512-bit AVX instructions in the auto-vectorizer. ;; ISA support |