1 |
commit: 3f9f4ffb0ee9da59e44ff405a872c00736fa7159 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 1 00:32:41 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 1 00:32:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=3f9f4ffb |
7 |
|
8 |
9.3.0: backport assume_aligned fix (PR94163) |
9 |
|
10 |
Reported-by: Ervin Peters |
11 |
Bug: https://bugs.gentoo.org/750905 |
12 |
Bug: https://gcc.gnu.org/PR94163 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
9.3.0/gentoo/32_all_assume-aligned.patch | 31 +++++++++++++++++++++++++++++++ |
16 |
9.3.0/gentoo/README.history | 1 + |
17 |
2 files changed, 32 insertions(+) |
18 |
|
19 |
diff --git a/9.3.0/gentoo/32_all_assume-aligned.patch b/9.3.0/gentoo/32_all_assume-aligned.patch |
20 |
new file mode 100644 |
21 |
index 0000000..10dffbb |
22 |
--- /dev/null |
23 |
+++ b/9.3.0/gentoo/32_all_assume-aligned.patch |
24 |
@@ -0,0 +1,31 @@ |
25 |
+https://bugs.gentoo.org/750905 |
26 |
+https://gcc.gnu.org/PR94163 |
27 |
+ |
28 |
+From db3584552871c8caccdc22e97ea1573da9458253 Mon Sep 17 00:00:00 2001 |
29 |
+From: Richard Biener <rguenther@××××.de> |
30 |
+Date: Fri, 13 Mar 2020 13:56:26 +0100 |
31 |
+Subject: [PATCH] tree-optimization/94163 constrain alignment set by PRE |
32 |
+ |
33 |
+This avoids HWI -> unsigned truncation to end up with zero alignment |
34 |
+which set_ptr_info_alignment ICEs on. |
35 |
+ |
36 |
+2020-03-13 Richard Biener <rguenther@××××.de> |
37 |
+ |
38 |
+ PR tree-optimization/94163 |
39 |
+ * tree-ssa-pre.c (create_expression_by_pieces): Check |
40 |
+ whether alignment would be zero. |
41 |
+--- a/gcc/tree-ssa-pre.c |
42 |
++++ b/gcc/tree-ssa-pre.c |
43 |
+@@ -2810,7 +2810,8 @@ create_expression_by_pieces (basic_block block, pre_expr expr, |
44 |
+ unsigned HOST_WIDE_INT hmisalign |
45 |
+ = args.length () == 3 ? tree_to_uhwi (args[2]) : 0; |
46 |
+ if ((halign & (halign - 1)) == 0 |
47 |
+- && (hmisalign & ~(halign - 1)) == 0) |
48 |
++ && (hmisalign & ~(halign - 1)) == 0 |
49 |
++ && (unsigned int)halign != 0) |
50 |
+ set_ptr_info_alignment (get_ptr_info (forcedname), |
51 |
+ halign, hmisalign); |
52 |
+ } |
53 |
+-- |
54 |
+2.29.2 |
55 |
+ |
56 |
|
57 |
diff --git a/9.3.0/gentoo/README.history b/9.3.0/gentoo/README.history |
58 |
index ff47a81..70b06c9 100644 |
59 |
--- a/9.3.0/gentoo/README.history |
60 |
+++ b/9.3.0/gentoo/README.history |
61 |
@@ -2,6 +2,7 @@ |
62 |
+ 30_all_plugin-objdump.patch |
63 |
U 11_all_extra-options.patch |
64 |
+ 31_all_ipa-to_frequency.patch |
65 |
+ + 32_all_assume-aligned.patch |
66 |
|
67 |
3 29 May 2020 |
68 |
+ 29_all_libcpp-ar.patch |