gcc: Backport nios2 gcc ICE fix
PATCH 1/1 gcc: Backport nios2 gcc ICE fix
Backport a patch from mainline gcc 5 branch to fix ICE triggered when cross-compiling libdrm for nios2 architecture. The same ICE is fixed in gcc6 already.
Signed-off-by Marek Vasut <[email protected]>
Cc Khem Raj <[email protected]>
--- meta/recipes-devtools/gcc/gcc-5.3.inc | 1 + .../0061-nios2-Make-assert-less-restrictive.patch | 35 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-5.3/0061-nios2-Make-assert-less-restrictive.patch
meta/recipes-devtools/gcc/gcc-5.3.inc +1 -0
@@ -90,6 +90,7 @@ SRC_URI = "\ file://0058-fdebug-prefix-map-support-to-remap-relative-path.patch \ file://0059-libgcc-use-ldflags.patch \ file://0060-remove-prototypes-cfns.patch \ + file://0061-nios2-Make-assert-less-restrictive.patch \ file://CVE-2016-4488.patch \ file://CVE-2016-4489.patch \ file://CVE-2016-2226.patch \
meta/recipes-devtools/gcc/gcc-5.3/0061-nios2-Make-assert-less-restrictive.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 802c64857074cb7b002d91ce6352139c2353ca06 Mon Sep 17 00:00:00 2001 +From: cltang <cltang@138bc75d-0d04-0410-961f-82ee72b054a4> +Date: Sat, 21 May 2016 08:26:11 +0000 +Subject: [PATCH] 2016-05-21 Chung-Lin Tang <[email protected]> + + Backport from mainline + 2015-06-29 Sandra Loosemore <[email protected]> + + * config/nios2/nios2.c (nios2_delegitimize_address): Make + assert less restrictive. + + + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@236555 138bc75d-0d04-0410-961f-82ee72b054a4 +Upstream-Status: Backport (git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@236555 138bc75d-0d04-0410-961f-82ee72b054a4) +--- + gcc/config/nios2/nios2.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletion(-) + +diff --git a/gcc/config/nios2/nios2.c b/gcc/config/nios2/nios2.c +index 7b6b389..3b22331 100644 +--- a/gcc/config/nios2/nios2.c ++++ b/gcc/config/nios2/nios2.c +@@ -1930,7 +1930,7 @@ nios2_delegitimize_address (rtx x) + case UNSPEC_LOAD_TLS_IE: + case UNSPEC_ADD_TLS_LE: + x = XVECEXP (XEXP (x, 0), 0, 0); +- gcc_assert (GET_CODE (x) == SYMBOL_REF); ++ gcc_assert (CONSTANT_P (x)); + break; + } + } +-- +2.8.1 +
Signature · 1 line
2.7.0
Quoted 3 lines · Marek Vasut
Backport a patch from mainline gcc 5 branch to fix ICE triggered when cross-compiling libdrm for nios2 architecture. The same ICE is fixed in gcc6 already.
This is ok
Quoted 65 lines
Signed-off-by Marek Vasut <[email protected]>Cc Khem Raj <[email protected]>--- meta/recipes-devtools/gcc/gcc-5.3.inc | 1 + .../0061-nios2-Make-assert-less-restrictive.patch | 35 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-5.3/0061-nios2-Make-assert-less-restrictive.patchmeta/recipes-devtools/gcc/gcc-5.3.inc +1
-0@@ -90,6 +90,7 @@ SRC_URI = "\ file://0058-fdebug-prefix-map-support-to-remap-relative-path.patch \ file://0059-libgcc-use-ldflags.patch \ file://0060-remove-prototypes-cfns.patch \ + file://0061-nios2-Make-assert-less-restrictive.patch \ file://CVE-2016-4488.patch \ file://CVE-2016-4489.patch \ file://CVE-2016-2226.patch \meta/recipes-devtools/gcc/gcc-5.3/0061-nios2-Make-assert-less-restrictive.patch new file +35
-1@@ -0,0 +1,35 @@ +From 802c64857074cb7b002d91ce6352139c2353ca06 Mon Sep 17 00:00:00 2001 +From: cltang <cltang@138bc75d-0d04-0410-961f-82ee72b054a4> +Date: Sat, 21 May 2016 08:26:11 +0000 +Subject: [PATCH] 2016-05-21 Chung-Lin Tang <[email protected]> + + Backport from mainline + 2015-06-29 Sandra Loosemore <[email protected]> + + * config/nios2/nios2.c (nios2_delegitimize_address): Make + assert less restrictive. + + + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@236555 138bc75d-0d04-0410-961f-82ee72b054a4 +Upstream-Status: Backport (git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@236555 138bc75d-0d04-0410-961f-82ee72b054a4) +--- + gcc/config/nios2/nios2.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletion(-) + +diff --git a/gcc/config/nios2/nios2.c b/gcc/config/nios2/nios2.c +index 7b6b389..3b22331 100644 +--- a/gcc/config/nios2/nios2.c ++++ b/gcc/config/nios2/nios2.c +@@ -1930,7 +1930,7 @@ nios2_delegitimize_address (rtx x) + case UNSPEC_LOAD_TLS_IE: + case UNSPEC_ADD_TLS_LE: + x = XVECEXP (XEXP (x, 0), 0, 0); +- gcc_assert (GET_CODE (x) == SYMBOL_REF); ++ gcc_assert (CONSTANT_P (x)); + break; + } + } +-- +2.8.1 + --2.7.0