summaryrefslogtreecommitdiff
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
commitac5ba029c708e583456085e04bd31dbeb0a442e6 (patch)
treed66ab46af49d3bd214adf7c1f5a21574a32844d7
parentgdb/8.1: start new patchset, bug #650130 (diff)
downloadgentoo-ac5ba029c708e583456085e04bd31dbeb0a442e6.tar.gz
gentoo-ac5ba029c708e583456085e04bd31dbeb0a442e6.tar.bz2
gentoo-ac5ba029c708e583456085e04bd31dbeb0a442e6.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--src/patchsets/gcc/7.3.0/gentoo/91_all_bmi-i386-PR-target-81763.patch40
-rw-r--r--src/patchsets/gcc/7.3.0/gentoo/README.history2
2 files changed, 42 insertions, 0 deletions
diff --git a/src/patchsets/gcc/7.3.0/gentoo/91_all_bmi-i386-PR-target-81763.patch b/src/patchsets/gcc/7.3.0/gentoo/91_all_bmi-i386-PR-target-81763.patch
new file mode 100644
index 0000000000..2deca48897
--- /dev/null
+++ b/src/patchsets/gcc/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/src/patchsets/gcc/7.3.0/gentoo/README.history b/src/patchsets/gcc/7.3.0/gentoo/README.history
index 4283957cc8..8aa5d143f5 100644
--- a/src/patchsets/gcc/7.3.0/gentoo/README.history
+++ b/src/patchsets/gcc/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