summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2017-11-09 21:41:44 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-11 12:14:28 +0000
commitbccd9f9e2013ed56b74dedb8f1a0a50d8b8b5533 (patch)
tree86130cb74eb5e159eda2538b7ab90cd3c1871748 /meta
parent118620b66b678d8d0363f5bbd8279854c827dcd0 (diff)
downloadpoky-bccd9f9e2013ed56b74dedb8f1a0a50d8b8b5533.tar.gz
Revert "gcc: fix miscompilation on mips64"
This reverts commit b656fd9267b1f36d46ca20a1c0bcfaedbf7df438. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/gcc/gcc-7.2.inc1
-rw-r--r--meta/recipes-devtools/gcc/gcc-7.2/fix-miscompilation-for-O1-on-mips64el.patch35
2 files changed, 0 insertions, 36 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-7.2.inc b/meta/recipes-devtools/gcc/gcc-7.2.inc
index 02b8e03482..a2cb288ba0 100644
--- a/meta/recipes-devtools/gcc/gcc-7.2.inc
+++ b/meta/recipes-devtools/gcc/gcc-7.2.inc
@@ -75,7 +75,6 @@ SRC_URI = "\
75 file://0048-gcc-Enable-static-PIE.patch \ 75 file://0048-gcc-Enable-static-PIE.patch \
76 file://fix-segmentation-fault-precompiled-hdr.patch \ 76 file://fix-segmentation-fault-precompiled-hdr.patch \
77 file://0050-RISC-V-Handle-non-legitimate-address-in-riscv_legiti.patch \ 77 file://0050-RISC-V-Handle-non-legitimate-address-in-riscv_legiti.patch \
78 file://fix-miscompilation-for-O1-on-mips64el.patch \
79 ${BACKPORTS} \ 78 ${BACKPORTS} \
80" 79"
81BACKPORTS = "\ 80BACKPORTS = "\
diff --git a/meta/recipes-devtools/gcc/gcc-7.2/fix-miscompilation-for-O1-on-mips64el.patch b/meta/recipes-devtools/gcc/gcc-7.2/fix-miscompilation-for-O1-on-mips64el.patch
deleted file mode 100644
index 28020b0e3b..0000000000
--- a/meta/recipes-devtools/gcc/gcc-7.2/fix-miscompilation-for-O1-on-mips64el.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1This patch comes from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81803
2
3Author: mpf <mpf@138bc75d-0d04-0410-961f-82ee72b054a4>
4
5This patch hasn't been merged into gcc. But it does solve the problem of
6strange behaviour of `systemd status <xxx>' on qemumips64.
7
8Upstream-Status: Pending [Taken from gcc bugzilla's attachment]
9
10Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
11---
12 gcc/lra-constraints.c | 7 ++++++-
13 1 file changed, 6 insertions(+), 1 deletion(-)
14
15diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c
16index c8bc9b9a66f..6d319662b09 100644
17--- a/gcc/lra-constraints.c
18+++ b/gcc/lra-constraints.c
19@@ -4235,7 +4235,12 @@ curr_insn_transform (bool check_only_p)
20 && (goal_alt[i] == NO_REGS
21 || (simplify_subreg_regno
22 (ira_class_hard_regs[goal_alt[i]][0],
23- GET_MODE (reg), byte, mode) >= 0)))))
24+ GET_MODE (reg), byte, mode) >= 0))))
25+ || (type != OP_IN
26+ && GET_MODE_PRECISION (mode)
27+ < GET_MODE_PRECISION (GET_MODE (reg))
28+ && GET_MODE_SIZE (GET_MODE (reg)) <= UNITS_PER_WORD
29+ && WORD_REGISTER_OPERATIONS))
30 {
31 /* An OP_INOUT is required when reloading a subreg of a
32 mode wider than a word to ensure that data beyond the
33--
342.13.0
35