From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gcc-patches:master commit in: 8.3.0/gentoo/
Date: Mon, 4 Nov 2019 08:30:46 +0000 (UTC) [thread overview]
Message-ID: <1572855940.b4f434e19efe6a9f833149a104885d4dfaf1f43d.slyfox@gentoo> (raw)
commit: b4f434e19efe6a9f833149a104885d4dfaf1f43d
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 4 08:25:40 2019 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Nov 4 08:25:40 2019 +0000
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=b4f434e1
8.3.0: drop 30_all_sparc-PIC-constant-PR91472.patch
PR91472 fixed obscure code generation bug on gmp testsuite but
introduced gcc regression in compiling python.
Let's revert the fix. It will break gmp tests on sparc again
but at least restore python building.
Reported-by: Rolf Eike Beer
Bug: https://bugs.gentoo.org/697708
Bug: https://gcc.gnu.org/PR92095
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
.../gentoo/30_all_sparc-PIC-constant-PR91472.patch | 83 ----------------------
8.3.0/gentoo/README.history | 3 +
2 files changed, 3 insertions(+), 83 deletions(-)
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
deleted file mode 100644
index aeacdde..0000000
--- a/8.3.0/gentoo/30_all_sparc-PIC-constant-PR91472.patch
+++ /dev/null
@@ -1,83 +0,0 @@
-https://gcc.gnu.org/PR91472
-Fix gmp test suite failrues.
-
-From 0a09a00c87081e0a8d1d382b33bb0b1ec03875e7 Mon Sep 17 00:00:00 2001
-From: ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
-Date: Sun, 1 Sep 2019 12:55:22 +0000
-Subject: [PATCH] PR target/91472 * config/sparc/sparc.c
- (sparc_cannot_force_const_mem): Return true during LRA/reload in PIC mode
- if the PIC register hasn't been used yet. (sparc_pic_register_p): Test
- reload_in_progress for consistency's sake.
-
-git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@275270 138bc75d-0d04-0410-961f-82ee72b054a4
----
- gcc/config/sparc/sparc.c | 9 ++++-
- .../gcc.c-torture/execute/20190901-1.c | 36 +++++++++++++++++++
-
---- a/gcc/config/sparc/sparc.c
-+++ b/gcc/config/sparc/sparc.c
-@@ -4201,6 +4201,13 @@ eligible_for_sibcall_delay (rtx_insn *trial)
- static bool
- sparc_cannot_force_const_mem (machine_mode mode, rtx x)
- {
-+ /* After IRA has run in PIC mode, it is too late to put anything into the
-+ constant pool if the PIC register hasn't already been initialized. */
-+ if ((lra_in_progress || reload_in_progress)
-+ && flag_pic
-+ && !crtl->uses_pic_offset_table)
-+ return true;
-+
- switch (GET_CODE (x))
- {
- case CONST_INT:
-@@ -4450,7 +4457,7 @@ sparc_pic_register_p (rtx x)
- return true;
-
- if (!HARD_REGISTER_P (pic_offset_table_rtx)
-- && (HARD_REGISTER_P (x) || lra_in_progress)
-+ && (HARD_REGISTER_P (x) || lra_in_progress || reload_in_progress)
- && ORIGINAL_REGNO (x) == REGNO (pic_offset_table_rtx))
- return true;
-
---- /dev/null
-+++ b/gcc/testsuite/gcc.c-torture/execute/20190901-1.c
-@@ -0,0 +1,36 @@
-+/* PR target/91472 */
-+/* Reported by John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> */
-+
-+typedef unsigned int gmp_uint_least32_t;
-+
-+union ieee_double_extract
-+{
-+ struct
-+ {
-+ gmp_uint_least32_t sig:1;
-+ gmp_uint_least32_t exp:11;
-+ gmp_uint_least32_t manh:20;
-+ gmp_uint_least32_t manl:32;
-+ } s;
-+ double d;
-+};
-+
-+double __attribute__((noipa))
-+tests_infinity_d (void)
-+{
-+ union ieee_double_extract x;
-+ x.s.exp = 2047;
-+ x.s.manl = 0;
-+ x.s.manh = 0;
-+ x.s.sig = 0;
-+ return x.d;
-+}
-+
-+int
-+main (void)
-+{
-+ double x = tests_infinity_d ();
-+ if (x == 0.0)
-+ __builtin_abort ();
-+ return 0;
-+}
---
-2.23.0
-
diff --git a/8.3.0/gentoo/README.history b/8.3.0/gentoo/README.history
index 429137b..745589a 100644
--- a/8.3.0/gentoo/README.history
+++ b/8.3.0/gentoo/README.history
@@ -1,3 +1,6 @@
+3 TODO
+ - 30_all_sparc-PIC-constant-PR91472.patch
+
2 22 Sep 2019
+ 29_all_ia64-bootstrap.patch
+ 30_all_sparc-PIC-constant-PR91472.patch
next reply other threads:[~2019-11-04 8:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-04 8:30 Sergei Trofimovich [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-08-17 22:26 [gentoo-commits] proj/gcc-patches:master commit in: 8.3.0/gentoo/ Sergei Trofimovich
2020-05-29 7:54 Sergei Trofimovich
2020-04-12 16:15 Sergei Trofimovich
2020-03-21 11:14 Sergei Trofimovich
2020-03-04 11:52 Sergei Trofimovich
2019-11-04 22:37 Sergei Trofimovich
2019-11-04 8:30 Sergei Trofimovich
2019-09-22 9:20 Sergei Trofimovich
2019-09-20 23:12 Sergei Trofimovich
2019-09-12 21:55 Sergei Trofimovich
2019-04-30 15:50 Sergei Trofimovich
2019-04-06 12:45 Sergei Trofimovich
2019-04-04 7:03 Sergei Trofimovich
2019-04-04 7:03 Sergei Trofimovich
2019-03-08 7:55 Sergei Trofimovich
2019-02-22 23:46 Sergei Trofimovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1572855940.b4f434e19efe6a9f833149a104885d4dfaf1f43d.slyfox@gentoo \
--to=slyfox@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox