]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/82306 (Revision r253089 breaks bootstrap on Darwin)
authorUros Bizjak <ubizjak@gmail.com>
Sat, 23 Sep 2017 14:26:06 +0000 (16:26 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 23 Sep 2017 14:26:06 +0000 (16:26 +0200)
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

gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.opt

index af92ec3424d098608ad248c9f8793a64e8ee9350..041e47feffe2e5edaf4b0abdee653b4968692303 100644 (file)
@@ -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
index 5e8f58c5e9f817fd360210da34b05a01b8b8cd81..7434aaebea2fe8abd60276074ceb5c7dc09b8d87 100644 (file)
@@ -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)
index 1c76b71dd577cab4127e65b152c8ceced8027e8b..9064bf09eb5358e1d5c99ced8b2d9a80e4b8e366 100644 (file)
@@ -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