aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-03-11 10:00:35 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2018-03-11 10:00:35 +0000
commitfa80ffd050dcda878dad25f010922576b46a64b0 (patch)
tree851781b54d5b3cc7156bd782c9fb1621fa228cae
parentgcc/7.3.0: initial patchset, take 2 (moved patches to gentoo/) (diff)
downloadgcc-patches-fa80ffd050dcda878dad25f010922576b46a64b0.tar.gz
gcc-patches-fa80ffd050dcda878dad25f010922576b46a64b0.tar.bz2
gcc-patches-fa80ffd050dcda878dad25f010922576b46a64b0.zip
gcc/7.3.0: add i386-bmi tweak, bug #649880
Bug: https://bugs.gentoo.org/649880 Bug: https://gcc.gnu.org/PR81763
-rw-r--r--7.3.0/gentoo/91_all_bmi-i386-PR-target-81763.patch40
-rw-r--r--7.3.0/gentoo/README.history2
2 files changed, 42 insertions, 0 deletions
diff --git a/7.3.0/gentoo/91_all_bmi-i386-PR-target-81763.patch b/7.3.0/gentoo/91_all_bmi-i386-PR-target-81763.patch
new file mode 100644
index 0000000..2deca48
--- /dev/null
+++ b/7.3.0/gentoo/91_all_bmi-i386-PR-target-81763.patch
@@ -0,0 +1,40 @@
+From f15f28c30b67b62cb2aa52b48f2c5c645cbfa170 Mon Sep 17 00:00:00 2001
+From: uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
+Date: Fri, 26 Jan 2018 15:36:32 +0000
+Subject: [PATCH] PR target/81763 * config/i386/i386.md
+ (*andndi3_doubleword): Add earlyclobber to (=&r,r,rm) alternative. Add
+ (=r,0,rm) and (=r,r,0) alternatives.
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257096 138bc75d-0d04-0410-961f-82ee72b054a4
+https://gcc.gnu.org/PR81763
+https://bugs.gentoo.org/649880
+---
+ gcc/config/i386/i386.md | 8 ++++----
+ 2 files changed, 10 insertions(+), 4 deletions(-)
+
+diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
+index 5cd3ec093cd..fe9649d8738 100644
+--- a/gcc/config/i386/i386.md
++++ b/gcc/config/i386/i386.md
+@@ -9250,14 +9250,14 @@
+ })
+
+ (define_insn "*andndi3_doubleword"
+- [(set (match_operand:DI 0 "register_operand" "=r,&r")
++ [(set (match_operand:DI 0 "register_operand" "=&r,r,r,&r")
+ (and:DI
+- (not:DI (match_operand:DI 1 "register_operand" "r,0"))
+- (match_operand:DI 2 "nonimmediate_operand" "rm,rm")))
++ (not:DI (match_operand:DI 1 "register_operand" "r,0,r,0"))
++ (match_operand:DI 2 "nonimmediate_operand" "rm,rm,0,rm")))
+ (clobber (reg:CC FLAGS_REG))]
+ "!TARGET_64BIT && TARGET_STV && TARGET_SSE2"
+ "#"
+- [(set_attr "isa" "bmi,*")])
++ [(set_attr "isa" "bmi,bmi,bmi,*")])
+
+ (define_split
+ [(set (match_operand:DI 0 "register_operand")
+--
+2.16.2
+
diff --git a/7.3.0/gentoo/README.history b/7.3.0/gentoo/README.history
index 4283957..8aa5d14 100644
--- a/7.3.0/gentoo/README.history
+++ b/7.3.0/gentoo/README.history
@@ -1,3 +1,5 @@
+1.1 11 Feb 2018
+ + 91_all_bmi-i386-PR-target-81763.patch
1.0 25 Jan 2018
+ 10_all_default-fortify-source.patch
+ 11_all_default-warn-format-security.patch