Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gcc-patches:master commit in: 8.2.0/gentoo/
Date: Tue, 18 Dec 2018 22:39:04
Message-Id: 1545172645.134dc72e3b4e140756f00b65688f084188f59d18.slyfox@gentoo
1 commit: 134dc72e3b4e140756f00b65688f084188f59d18
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 18 22:37:25 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 18 22:37:25 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=134dc72e
7
8 8.2.0: backport avx2 codegen SIGSEGV, bug #657060
9
10 Fixes SIGSEGV when building media-libs/opencv-3.4.1-r1
11
12 Reported-by: Johannes Hirte
13 Bug: https://bugs.gentoo.org/657060
14 Bug: https://gcc.gnu.org/PR86871
15 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
16
17 8.2.0/gentoo/115_all_avx2-SIGSEGV-PR86871.patch | 69 +++++++++++++++++++++++++
18 8.2.0/gentoo/README.history | 1 +
19 2 files changed, 70 insertions(+)
20
21 diff --git a/8.2.0/gentoo/115_all_avx2-SIGSEGV-PR86871.patch b/8.2.0/gentoo/115_all_avx2-SIGSEGV-PR86871.patch
22 new file mode 100644
23 index 0000000..4d24259
24 --- /dev/null
25 +++ b/8.2.0/gentoo/115_all_avx2-SIGSEGV-PR86871.patch
26 @@ -0,0 +1,69 @@
27 +https://bugs.gentoo.org/657060
28 +https://gcc.gnu.org/PR86871
29 +
30 +From c69949a7ec14a363128cd1445c7153e1ce051eb7 Mon Sep 17 00:00:00 2001
31 +From: rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
32 +Date: Tue, 14 Aug 2018 09:24:45 +0000
33 +Subject: [PATCH] Fix invalid assumption in vect_transform_stmt (PR 86871)
34 +
35 +The handling of outer-loop uses of inner-loop definitions assumed
36 +that anything that wasn't a PHI would be a gassign. It's also
37 +possible for it to be a gcall.
38 +
39 +2018-08-14 Richard Sandiford <richard.sandiford@×××.com>
40 +
41 +gcc/
42 + Backport from mainline
43 + 2018-08-09 Richard Sandiford <richard.sandiford@×××.com>
44 +
45 + PR tree-optimization/86871
46 + * tree-vect-stmts.c (vect_transform_stmt): Use gimple_get_lhs
47 + instead of gimple_assign_lhs.
48 +
49 +gcc/testsuite/
50 + Backport from mainline
51 + 2018-08-09 Richard Sandiford <richard.sandiford@×××.com>
52 +
53 + PR tree-optimization/86871
54 + * gcc.dg/vect/pr86871.c: New test.
55 +
56 +
57 +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-8-branch@263528 138bc75d-0d04-0410-961f-82ee72b054a4
58 +---
59 + gcc/testsuite/gcc.dg/vect/pr86871.c | 15 +++++++++++++++
60 + gcc/tree-vect-stmts.c | 2 +-
61 + 4 files changed, 33 insertions(+), 1 deletion(-)
62 + create mode 100644 gcc/testsuite/gcc.dg/vect/pr86871.c
63 +
64 +--- /dev/null
65 ++++ b/gcc/testsuite/gcc.dg/vect/pr86871.c
66 +@@ -0,0 +1,15 @@
67 ++/* { dg-do compile } */
68 ++
69 ++extern int b[];
70 ++extern int c[];
71 ++void g(int f) {
72 ++ for (; f; f++) {
73 ++ int d = 0;
74 ++ for (int e = -1; e <= 1; e++) {
75 ++ int a = f + e;
76 ++ if (a)
77 ++ d = *(c + a);
78 ++ }
79 ++ *(b + f) = d;
80 ++ }
81 ++ }
82 +--- a/gcc/tree-vect-stmts.c
83 ++++ b/gcc/tree-vect-stmts.c
84 +@@ -9602,7 +9602,7 @@ vect_transform_stmt (gimple *stmt, gimple_stmt_iterator *gsi,
85 + if (gimple_code (stmt) == GIMPLE_PHI)
86 + scalar_dest = PHI_RESULT (stmt);
87 + else
88 +- scalar_dest = gimple_assign_lhs (stmt);
89 ++ scalar_dest = gimple_get_lhs (stmt);
90 +
91 + FOR_EACH_IMM_USE_FAST (use_p, imm_iter, scalar_dest)
92 + {
93 +--
94 +2.20.1
95 +
96
97 diff --git a/8.2.0/gentoo/README.history b/8.2.0/gentoo/README.history
98 index 787f60c..6e3896c 100644
99 --- a/8.2.0/gentoo/README.history
100 +++ b/8.2.0/gentoo/README.history
101 @@ -1,5 +1,6 @@
102 1.7 TODO
103 + 114_all_kr-decl-PR88214.patch
104 + + 115_all_avx2-SIGSEGV-PR86871.patch
105
106 1.6 01 Dec 2018
107 U 10_all_default-fortify-source.patch