Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] gcc: import upstream patch for bug 90756
Date: Thu, 11 Jul 2019 10:54:40 +0200	[thread overview]
Message-ID: <20190711085440.k3mXDLttHOY0SaMlTgX5nD3LU7KUHFWOCmFt4SVfKCY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12988@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 472 bytes --]

There is an updated pull request by jnbr against master on the void-packages repository

https://github.com/jnbr/void-packages gcc
https://github.com/void-linux/void-packages/pull/12988

gcc: import upstream patch for bug 90756
This patch is necessary to build firefox 68 on i686.
Apparently only i686 and s390x are affected by this bug, so only patch the i686 cross tool chains.

A patch file from https://github.com/void-linux/void-packages/pull/12988.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc-12988.patch --]
[-- Type: application/text/x-diff, Size: 4962 bytes --]

From 17bfb88a0e2711238bc0d58b824fb0e95322000d Mon Sep 17 00:00:00 2001
From: Johannes <johannes.brechtmann@gmail.com>
Date: Thu, 11 Jul 2019 09:39:21 +0200
Subject: [PATCH 1/3] gcc: import upstream patch for bug 90756.

---
 srcpkgs/gcc/patches/bug90756.patch | 23 +++++++++++++++++++++++
 srcpkgs/gcc/template               |  2 +-
 2 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/gcc/patches/bug90756.patch

diff --git a/srcpkgs/gcc/patches/bug90756.patch b/srcpkgs/gcc/patches/bug90756.patch
new file mode 100644
index 00000000000..cf78dad9cce
--- /dev/null
+++ b/srcpkgs/gcc/patches/bug90756.patch
@@ -0,0 +1,23 @@
+Bug 90756 - [7/8/9 Regression] g++ ICE in convert_move, at expr.c:218 on i686 and s390x 
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90756
+
+--- gcc/explow.c	2019/07/04 02:39:58	273035
++++ gcc/explow.c	2019/07/04 04:49:22	273036
+@@ -892,16 +892,7 @@
+ 
+   tree type = TREE_TYPE (name);
+   int unsignedp = TYPE_UNSIGNED (type);
+-  machine_mode mode = TYPE_MODE (type);
+-
+-  /* Bypass TYPE_MODE when it maps vector modes to BLKmode.  */
+-  if (mode == BLKmode)
+-    {
+-      gcc_assert (VECTOR_TYPE_P (type));
+-      mode = type->type_common.mode;
+-    }
+-
+-  machine_mode pmode = promote_mode (type, mode, &unsignedp);
++  machine_mode pmode = promote_mode (type, TYPE_MODE (type), &unsignedp);
+   if (punsignedp)
+     *punsignedp = unsignedp;
+ 
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index fcc150b5587..bebcba9ac3d 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -8,7 +8,7 @@ _isl_version=0.19
 
 pkgname=gcc
 version=${_minorver}.0
-revision=2
+revision=3
 short_desc="GNU Compiler Collection"
 maintainer="Juan RP <xtraeme@voidlinux.org>"
 homepage="http://gcc.gnu.org"

From 158173ab637121d55109964fbeade1401a08229a Mon Sep 17 00:00:00 2001
From: Johannes <johannes.brechtmann@gmail.com>
Date: Thu, 11 Jul 2019 09:39:56 +0200
Subject: [PATCH 2/3] cross-i686-linux-musl: import upstream patch for bug
 90756.

---
 srcpkgs/cross-i686-linux-musl/files/bug90756.patch | 1 +
 srcpkgs/cross-i686-linux-musl/template             | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/cross-i686-linux-musl/files/bug90756.patch

diff --git a/srcpkgs/cross-i686-linux-musl/files/bug90756.patch b/srcpkgs/cross-i686-linux-musl/files/bug90756.patch
new file mode 120000
index 00000000000..02ae43b18b4
--- /dev/null
+++ b/srcpkgs/cross-i686-linux-musl/files/bug90756.patch
@@ -0,0 +1 @@
+../../gcc/patches/bug90756.patch
\ No newline at end of file
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 840e9c111ed..a2bbefd8817 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -11,7 +11,7 @@ _archflags="-march=i686"
 
 pkgname=cross-${_triplet}
 version=0.31
-revision=2
+revision=3
 short_desc="Cross toolchain for i686 target (musl)"
 maintainer="Juan RP <xtraeme@voidlinux.org>"
 homepage="https://www.voidlinux.org/"
@@ -88,6 +88,7 @@ _gcc_bootstrap() {
 	_apply_patch -p0 ${FILESDIR}/musl-ada.patch
 	_apply_patch -p1 ${FILESDIR}/libgnarl-musl.patch
 	_apply_patch -p0 ${FILESDIR}/invalid_tls_model.patch
+	_apply_patch -p0 ${FILESDIR}/bug90756.patch
 
 	msg_normal "Building cross gcc bootstrap\n"
 

From f360a79ba95424dc8082a8cf798f19c47142a720 Mon Sep 17 00:00:00 2001
From: Johannes <johannes.brechtmann@gmail.com>
Date: Thu, 11 Jul 2019 09:40:25 +0200
Subject: [PATCH 3/3] cross-i686-pc-linux-gnu: import upstream patch for bug
 90756.

[ci skip]
---
 srcpkgs/cross-i686-pc-linux-gnu/files/bug90756.patch | 1 +
 srcpkgs/cross-i686-pc-linux-gnu/template             | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/cross-i686-pc-linux-gnu/files/bug90756.patch

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/files/bug90756.patch b/srcpkgs/cross-i686-pc-linux-gnu/files/bug90756.patch
new file mode 120000
index 00000000000..02ae43b18b4
--- /dev/null
+++ b/srcpkgs/cross-i686-pc-linux-gnu/files/bug90756.patch
@@ -0,0 +1 @@
+../../gcc/patches/bug90756.patch
\ No newline at end of file
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index bf4012f1aa9..2fb5de011dc 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -11,7 +11,7 @@ _sysroot="/usr/${_triplet}"
 
 pkgname=cross-${_triplet}
 version=0.31
-revision=1
+revision=2
 short_desc="GNU Cross toolchain for the ${_triplet} target (binutils/gcc/glibc)"
 maintainer="Juan RP <xtraeme@voidlinux.org>"
 homepage="https://www.voidlinux.org/"
@@ -83,6 +83,7 @@ _gcc_bootstrap() {
 	_apply_patch -p0 ${FILESDIR}/fix-cxxflags-passing.patch
 	_apply_patch -p0 ${FILESDIR}/non-nullness.patch
 	_apply_patch -p0 ${FILESDIR}/no-stack_chk_fail_local.patch
+	_apply_patch -p0 ${FILESDIR}/bug90756.patch
 
 	msg_normal "Building cross gcc bootstrap\n"
 

  parent reply	other threads:[~2019-07-11  8:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-11  7:45 [PR PATCH] " voidlinux-github
2019-07-11  8:45 ` voidlinux-github
2019-07-11  8:46 ` voidlinux-github
2019-07-11  8:54 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-11  8:54 ` voidlinux-github [this message]
2019-07-12 11:52 ` [PR PATCH] [Merged]: " voidlinux-github

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=20190711085440.k3mXDLttHOY0SaMlTgX5nD3LU7KUHFWOCmFt4SVfKCY@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).