1 |
commit: b4f434e19efe6a9f833149a104885d4dfaf1f43d |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 4 08:25:40 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 4 08:25:40 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=b4f434e1 |
7 |
|
8 |
8.3.0: drop 30_all_sparc-PIC-constant-PR91472.patch |
9 |
|
10 |
PR91472 fixed obscure code generation bug on gmp testsuite but |
11 |
introduced gcc regression in compiling python. |
12 |
|
13 |
Let's revert the fix. It will break gmp tests on sparc again |
14 |
but at least restore python building. |
15 |
|
16 |
Reported-by: Rolf Eike Beer |
17 |
Bug: https://bugs.gentoo.org/697708 |
18 |
Bug: https://gcc.gnu.org/PR92095 |
19 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
20 |
|
21 |
.../gentoo/30_all_sparc-PIC-constant-PR91472.patch | 83 ---------------------- |
22 |
8.3.0/gentoo/README.history | 3 + |
23 |
2 files changed, 3 insertions(+), 83 deletions(-) |
24 |
|
25 |
diff --git a/8.3.0/gentoo/30_all_sparc-PIC-constant-PR91472.patch b/8.3.0/gentoo/30_all_sparc-PIC-constant-PR91472.patch |
26 |
deleted file mode 100644 |
27 |
index aeacdde..0000000 |
28 |
--- a/8.3.0/gentoo/30_all_sparc-PIC-constant-PR91472.patch |
29 |
+++ /dev/null |
30 |
@@ -1,83 +0,0 @@ |
31 |
-https://gcc.gnu.org/PR91472 |
32 |
-Fix gmp test suite failrues. |
33 |
- |
34 |
-From 0a09a00c87081e0a8d1d382b33bb0b1ec03875e7 Mon Sep 17 00:00:00 2001 |
35 |
-From: ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> |
36 |
-Date: Sun, 1 Sep 2019 12:55:22 +0000 |
37 |
-Subject: [PATCH] PR target/91472 * config/sparc/sparc.c |
38 |
- (sparc_cannot_force_const_mem): Return true during LRA/reload in PIC mode |
39 |
- if the PIC register hasn't been used yet. (sparc_pic_register_p): Test |
40 |
- reload_in_progress for consistency's sake. |
41 |
- |
42 |
-git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@275270 138bc75d-0d04-0410-961f-82ee72b054a4 |
43 |
---- |
44 |
- gcc/config/sparc/sparc.c | 9 ++++- |
45 |
- .../gcc.c-torture/execute/20190901-1.c | 36 +++++++++++++++++++ |
46 |
- |
47 |
---- a/gcc/config/sparc/sparc.c |
48 |
-+++ b/gcc/config/sparc/sparc.c |
49 |
-@@ -4201,6 +4201,13 @@ eligible_for_sibcall_delay (rtx_insn *trial) |
50 |
- static bool |
51 |
- sparc_cannot_force_const_mem (machine_mode mode, rtx x) |
52 |
- { |
53 |
-+ /* After IRA has run in PIC mode, it is too late to put anything into the |
54 |
-+ constant pool if the PIC register hasn't already been initialized. */ |
55 |
-+ if ((lra_in_progress || reload_in_progress) |
56 |
-+ && flag_pic |
57 |
-+ && !crtl->uses_pic_offset_table) |
58 |
-+ return true; |
59 |
-+ |
60 |
- switch (GET_CODE (x)) |
61 |
- { |
62 |
- case CONST_INT: |
63 |
-@@ -4450,7 +4457,7 @@ sparc_pic_register_p (rtx x) |
64 |
- return true; |
65 |
- |
66 |
- if (!HARD_REGISTER_P (pic_offset_table_rtx) |
67 |
-- && (HARD_REGISTER_P (x) || lra_in_progress) |
68 |
-+ && (HARD_REGISTER_P (x) || lra_in_progress || reload_in_progress) |
69 |
- && ORIGINAL_REGNO (x) == REGNO (pic_offset_table_rtx)) |
70 |
- return true; |
71 |
- |
72 |
---- /dev/null |
73 |
-+++ b/gcc/testsuite/gcc.c-torture/execute/20190901-1.c |
74 |
-@@ -0,0 +1,36 @@ |
75 |
-+/* PR target/91472 */ |
76 |
-+/* Reported by John Paul Adrian Glaubitz <glaubitz@××××××××××××××××.de> */ |
77 |
-+ |
78 |
-+typedef unsigned int gmp_uint_least32_t; |
79 |
-+ |
80 |
-+union ieee_double_extract |
81 |
-+{ |
82 |
-+ struct |
83 |
-+ { |
84 |
-+ gmp_uint_least32_t sig:1; |
85 |
-+ gmp_uint_least32_t exp:11; |
86 |
-+ gmp_uint_least32_t manh:20; |
87 |
-+ gmp_uint_least32_t manl:32; |
88 |
-+ } s; |
89 |
-+ double d; |
90 |
-+}; |
91 |
-+ |
92 |
-+double __attribute__((noipa)) |
93 |
-+tests_infinity_d (void) |
94 |
-+{ |
95 |
-+ union ieee_double_extract x; |
96 |
-+ x.s.exp = 2047; |
97 |
-+ x.s.manl = 0; |
98 |
-+ x.s.manh = 0; |
99 |
-+ x.s.sig = 0; |
100 |
-+ return x.d; |
101 |
-+} |
102 |
-+ |
103 |
-+int |
104 |
-+main (void) |
105 |
-+{ |
106 |
-+ double x = tests_infinity_d (); |
107 |
-+ if (x == 0.0) |
108 |
-+ __builtin_abort (); |
109 |
-+ return 0; |
110 |
-+} |
111 |
--- |
112 |
-2.23.0 |
113 |
- |
114 |
|
115 |
diff --git a/8.3.0/gentoo/README.history b/8.3.0/gentoo/README.history |
116 |
index 429137b..745589a 100644 |
117 |
--- a/8.3.0/gentoo/README.history |
118 |
+++ b/8.3.0/gentoo/README.history |
119 |
@@ -1,3 +1,6 @@ |
120 |
+3 TODO |
121 |
+ - 30_all_sparc-PIC-constant-PR91472.patch |
122 |
+ |
123 |
2 22 Sep 2019 |
124 |
+ 29_all_ia64-bootstrap.patch |
125 |
+ 30_all_sparc-PIC-constant-PR91472.patch |