1 |
slyfox 18/05/11 21:18:15 |
2 |
|
3 |
Modified: README.history |
4 |
Added: 96_all_lto-O2-PR85655.patch |
5 |
Log: |
6 |
Queue a fix for -O2 -lto into 1.3 patchset, bug #655518 |
7 |
|
8 |
Reported-by: Steffen Hau |
9 |
Bug: https://gcc.gnu.org/PR85655 |
10 |
Bug: https://bugs.gentoo.org/655518 |
11 |
|
12 |
Revision Changes Path |
13 |
1.8 src/patchsets/gcc/8.1.0/gentoo/README.history |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/README.history?rev=1.8&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/README.history?rev=1.8&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/README.history?r1=1.7&r2=1.8 |
18 |
|
19 |
Index: README.history |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/8.1.0/gentoo/README.history,v |
22 |
retrieving revision 1.7 |
23 |
retrieving revision 1.8 |
24 |
diff -u -r1.7 -r1.8 |
25 |
--- README.history 7 May 2018 12:47:01 -0000 1.7 |
26 |
+++ README.history 11 May 2018 21:18:15 -0000 1.8 |
27 |
@@ -1,5 +1,6 @@ |
28 |
1.3 TODO |
29 |
+ 95_all_ia64-TEXTREL.patch |
30 |
+ + 96_all_lto-O2-PR85655.patch |
31 |
1.2 06 May 2018 |
32 |
+ 93_all_arm-arch.patch |
33 |
+ 94_all_mips-o32-asan.patch |
34 |
|
35 |
|
36 |
|
37 |
1.1 src/patchsets/gcc/8.1.0/gentoo/96_all_lto-O2-PR85655.patch |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/96_all_lto-O2-PR85655.patch?rev=1.1&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/96_all_lto-O2-PR85655.patch?rev=1.1&content-type=text/plain |
41 |
|
42 |
Index: 96_all_lto-O2-PR85655.patch |
43 |
=================================================================== |
44 |
https://bugs.gentoo.org/655518 |
45 |
https://gcc.gnu.org/PR85655 |
46 |
|
47 |
From 815f1bcb7b6e7d076317c15a31525fea1b53b0c0 Mon Sep 17 00:00:00 2001 |
48 |
From: jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> |
49 |
Date: Fri, 11 May 2018 15:58:29 +0000 |
50 |
Subject: [PATCH] Check is_single_const in intersect_with_plats |
51 |
|
52 |
2018-05-11 Martin Jambor <mjambor@××××.cz> |
53 |
|
54 |
PR ipa/85655 |
55 |
* ipa-cp.c (intersect_with_plats): Check that the lattice contains |
56 |
single const. |
57 |
|
58 |
testsuite/ |
59 |
* g++.dg/lto/pr85655_0.C: New test. |
60 |
|
61 |
|
62 |
|
63 |
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-8-branch@260166 138bc75d-0d04-0410-961f-82ee72b054a4 |
64 |
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c |
65 |
index 4f28a55b862..e868b9c2623 100644 |
66 |
--- a/gcc/ipa-cp.c |
67 |
+++ b/gcc/ipa-cp.c |
68 |
@@ -4127,7 +4127,9 @@ intersect_with_plats (struct ipcp_param_lattices *plats, |
69 |
if (aglat->offset - offset == item->offset) |
70 |
{ |
71 |
gcc_checking_assert (item->value); |
72 |
- if (values_equal_for_ipcp_p (item->value, aglat->values->value)) |
73 |
+ if (aglat->is_single_const () |
74 |
+ && values_equal_for_ipcp_p (item->value, |
75 |
+ aglat->values->value)) |
76 |
found = true; |
77 |
break; |
78 |
} |