* [PATCH, i386]: Fix PR59952, -march=core-avx2 should not enable RTM
@ 2014-05-08 19:12 Uros Bizjak
0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2014-05-08 19:12 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 496 bytes --]
Hello!
Apparently, not all Haswell processors have TSX. Attached patch
removes PTA_RTM from default Haswell flags. PTA_HLX still makes sense
for Haswell processors, since the prefix is ignored on non-TSX
processors.
2014-05-08 Uros Bizjak <ubizjak@gmail.com>
PR target/59952
* config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
Bootstrapped and regression tested on x86_64-pc-linux-gnu. The patch
is committed on mainline, will be backported to all relevant release
branches.
Uros.
[-- Attachment #2: p.diff.txt --]
[-- Type: text/plain, Size: 575 bytes --]
Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c (revision 210231)
+++ config/i386/i386.c (working copy)
@@ -3130,7 +3130,7 @@ ix86_option_override_internal (bool main_args_p,
(PTA_SANDYBRIDGE | PTA_FSGSBASE | PTA_RDRND | PTA_F16C)
#define PTA_HASWELL \
(PTA_IVYBRIDGE | PTA_AVX2 | PTA_BMI | PTA_BMI2 | PTA_LZCNT \
- | PTA_FMA | PTA_MOVBE | PTA_RTM | PTA_HLE)
+ | PTA_FMA | PTA_MOVBE | PTA_HLE)
#define PTA_BROADWELL \
(PTA_HASWELL | PTA_ADX | PTA_PRFCHW | PTA_RDSEED)
#define PTA_BONNELL \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-05-08 19:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-08 19:12 [PATCH, i386]: Fix PR59952, -march=core-avx2 should not enable RTM Uros Bizjak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).