Skip to contentSkip to conversation

package/gcc: bump to 5.5.0

PATCH New Romain Naour 2 participants 4 messages Oct 15, 2017 – Oct 17, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gcc: bump to 5.5.0

Remove xtensa patches included in this release:
872-xtensa-use-unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch 873-xtensa-fix-_Unwind_GetCFA.patch 876-xtensa-Fix-PR-target-78603.patch 877-xtensa-fix-PR-target-82181.patch

Remove upstream patch:
942-asan-fix-missing-include-signal-h.patch

Remove backported patches for glibc >= 2.26 943-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch 944-sanitizer-linux.patch

---
 ...unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch |  31 ----
 .../gcc/5.4.0/873-xtensa-fix-_Unwind_GetCFA.patch  |  40 -----
 .../gcc/5.4.0/876-xtensa-Fix-PR-target-78603.patch |  37 ----
 .../gcc/5.4.0/877-xtensa-fix-PR-target-82181.patch |  31 ----
 .../942-asan-fix-missing-include-signal-h.patch    |  36 ----
 ...t_t-not-struct-ucontext-in-linux-unwind.h.patch | 192 ---------------------
 package/gcc/5.4.0/944-sanitizer-linux.patch        |  91 ----------
 package/gcc/{5.4.0 => 5.5.0}/100-uclibc-conf.patch |   0
 ...gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch |   0
 .../{5.4.0 => 5.5.0}/301-missing-execinfo_h.patch  |   0
 .../810-arm-softfloat-libgcc.patch                 |   0
 .../{5.4.0 => 5.5.0}/830-arm_unbreak_armv4t.patch  |   0
 ...et-70473-Reduce-size-of-Cortex-A8-automat.patch |   0
 .../840-microblaze-enable-dwarf-eh-support.patch   |   0
 .../850-libstdcxx-uclibc-c99.patch                 |   0
 package/gcc/{5.4.0 => 5.5.0}/860-cilk-wchar.patch  |   0
 .../870-xtensa-add-mauto-litpools-option.patch     |   0
 .../871-xtensa-reimplement-register-spilling.patch |   0
 .../874-xtensa-add-uclinux-support.patch           |   0
 .../875-xtensa-implement-trap-pattern.patch        |   0
 .../880-gcc-nios2-Add-IJMP_REGS-enum.patch         |   0
 .../{5.4.0 => 5.5.0}/890-fix-m68k-compile.patch    |   0
 .../{5.4.0 => 5.5.0}/891-fix-m68k-uclinux.patch    |   0
 .../900-libitm-fixes-for-musl-support.patch        |   0
 .../901-fixincludes-update-for-musl-support.patch  |   0
 .../{5.4.0 => 5.5.0}/902-unwind-fix-for-musl.patch |   0
 ...dc++-libgfortran-gthr-workaround-for-musl.patch |   0
 .../{5.4.0 => 5.5.0}/904-musl-libc-config.patch    |   0
 .../905-add-musl-support-to-gcc.patch              |   0
 .../{5.4.0 => 5.5.0}/906-mips-musl-support.patch   |   0
 .../{5.4.0 => 5.5.0}/907-x86-musl-support.patch    |   0
 .../{5.4.0 => 5.5.0}/908-arm-musl-support.patch    |   0
 .../909-aarch64-musl-support.patch                 |   0
 .../910-microblaze-musl-and-uclibc.patch           |   0
 .../{5.4.0 => 5.5.0}/911-ppc-musl-support.patch    |   0
 .../gcc/{5.4.0 => 5.5.0}/912-sh-musl-support.patch |   0
 .../930-libgcc-disable-split-stack-nothreads.patch |   0
 .../940-uclinux-enable-threads.patch               |   0
 .../941-mips-Add-support-for-mips-r6-musl.patch    |   0
 package/gcc/Config.in.host                         |   2 +-
 package/gcc/gcc.hash                               |   4 +-
 package/gcc/gcc.mk                                 |   6 +-
 42 files changed, 6 insertions(+), 464 deletions(-)
 delete mode 100644 package/gcc/5.4.0/872-xtensa-use-unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch
 delete mode 100644 package/gcc/5.4.0/873-xtensa-fix-_Unwind_GetCFA.patch
 delete mode 100644 package/gcc/5.4.0/876-xtensa-Fix-PR-target-78603.patch
 delete mode 100644 package/gcc/5.4.0/877-xtensa-fix-PR-target-82181.patch
 delete mode 100644 package/gcc/5.4.0/942-asan-fix-missing-include-signal-h.patch
 delete mode 100644 package/gcc/5.4.0/943-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch
 delete mode 100644 package/gcc/5.4.0/944-sanitizer-linux.patch
 rename package/gcc/{5.4.0 => 5.5.0}/100-uclibc-conf.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/301-missing-execinfo_h.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/810-arm-softfloat-libgcc.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/830-arm_unbreak_armv4t.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/831-ARM-PR-target-70473-Reduce-size-of-Cortex-A8-automat.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/840-microblaze-enable-dwarf-eh-support.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/850-libstdcxx-uclibc-c99.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/860-cilk-wchar.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/870-xtensa-add-mauto-litpools-option.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/871-xtensa-reimplement-register-spilling.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/874-xtensa-add-uclinux-support.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/875-xtensa-implement-trap-pattern.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/880-gcc-nios2-Add-IJMP_REGS-enum.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/890-fix-m68k-compile.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/891-fix-m68k-uclinux.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/900-libitm-fixes-for-musl-support.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/901-fixincludes-update-for-musl-support.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/902-unwind-fix-for-musl.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/903-libstdc++-libgfortran-gthr-workaround-for-musl.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/904-musl-libc-config.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/905-add-musl-support-to-gcc.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/906-mips-musl-support.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/907-x86-musl-support.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/908-arm-musl-support.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/909-aarch64-musl-support.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/910-microblaze-musl-and-uclibc.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/911-ppc-musl-support.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/912-sh-musl-support.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/930-libgcc-disable-split-stack-nothreads.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/940-uclinux-enable-threads.patch (100%)
 rename package/gcc/{5.4.0 => 5.5.0}/941-mips-Add-support-for-mips-r6-musl.patch (100%)
package/gcc/5.4.0/872-xtensa-use-unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch deleted +0 -31
deleted file mode 100644
index 9707f68..0000000
@@ -1,31 +0,0 @@
-From 7d7a85f75ba218df4a4226e95865fc8fa561cb86 Mon Sep 17 00:00:00 2001
-From: Max Filippov <[email protected]>
-Date: Fri, 14 Aug 2015 02:45:02 +0300
-Subject: [PATCH 2/3] xtensa: use unwind-dw2-fde-dip instead of unwind-dw2-fde
-
-This allows having exception cleanup code in binaries that don't
-register their unwind tables.
-
-2015-08-18  Max Filippov  <[email protected]>
-libgcc/
-	* config/xtensa/t-windowed (LIB2ADDEH): Replace unwind-dw2-fde
-	with unwind-dw2-fde-dip.
-
-Signed-off-by: Max Filippov <[email protected]>
----
-Backported from: r226963
-
- libgcc/config/xtensa/t-windowed | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libgcc/config/xtensa/t-windowed b/libgcc/config/xtensa/t-windowed
-index 7d9e9db..a99156c 100644
---- a/libgcc/config/xtensa/t-windowed
-+++ b/libgcc/config/xtensa/t-windowed
-@@ -1,2 +1,2 @@
- LIB2ADDEH = $(srcdir)/config/xtensa/unwind-dw2-xtensa.c \
--   $(srcdir)/unwind-dw2-fde.c $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
-+   $(srcdir)/unwind-dw2-fde-dip.c $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
--- 
-1.8.1.4
-
package/gcc/5.4.0/873-xtensa-fix-_Unwind_GetCFA.patch deleted +0 -40
deleted file mode 100644
index 2d8eb7c..0000000
@@ -1,40 +0,0 @@
-From b33905dc310f475ddbde4c9fb7230724b2068a2b Mon Sep 17 00:00:00 2001
-From: Max Filippov <[email protected]>
-Date: Sat, 15 Aug 2015 05:12:11 +0300
-Subject: [PATCH 3/3] xtensa: fix _Unwind_GetCFA
-
-Returning context->cfa in _Unwind_GetCFA makes CFA point one stack frame
-higher than what was actually used by code at context->ra. This results
-in invalid CFA value in signal frames and premature unwinding completion
-in forced unwinding used by uClibc NPTL thread cancellation.
-Returning context->sp from _Unwind_GetCFA makes all CFA values valid and
-matching code that used them.
-
-2015-08-18  Max Filippov  <[email protected]>
-libgcc/
-	* config/xtensa/unwind-dw2-xtensa.c (_Unwind_GetCFA): Return
-	context->sp instead of context->cfa.
-
-Signed-off-by: Max Filippov <[email protected]>
----
-Backported from: r226964
-
- libgcc/config/xtensa/unwind-dw2-xtensa.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libgcc/config/xtensa/unwind-dw2-xtensa.c b/libgcc/config/xtensa/unwind-dw2-xtensa.c
-index 82b0e63..8e579c7 100644
---- a/libgcc/config/xtensa/unwind-dw2-xtensa.c
-+++ b/libgcc/config/xtensa/unwind-dw2-xtensa.c
-@@ -130,7 +130,7 @@ _Unwind_GetGR (struct _Unwind_Context *context, int index)
- _Unwind_Word
- _Unwind_GetCFA (struct _Unwind_Context *context)
- {
--  return (_Unwind_Ptr) context->cfa;
-+  return (_Unwind_Ptr) context->sp;
- }
- 
- /* Overwrite the saved value for register INDEX in CONTEXT with VAL.  */
--- 
-1.8.1.4
-
package/gcc/5.4.0/876-xtensa-Fix-PR-target-78603.patch deleted +0 -37
deleted file mode 100644
index 628268a..0000000
@@ -1,37 +0,0 @@
-From e178289a12a829ec47dc5038d91401f65381e71d Mon Sep 17 00:00:00 2001
-From: Max Filippov <[email protected]>
-Date: Tue, 29 Nov 2016 13:09:17 -0800
-Subject: [PATCH 8/8] xtensa: Fix PR target/78603
-
-2016-11-29  Max Filippov  <[email protected]>
-gcc/
-	* config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
-	overhead loop start between a call and its CALL_ARG_LOCATION
-	note.
-
-Signed-off-by: Max Filippov <[email protected]>
----
-Backported from: r242979
-
- gcc/config/xtensa/xtensa.c | 5 ++++-
- 1 file changed, 4 insertions(+), 1 deletion(-)
-
-diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
-index 206ff80..36ab1e3 100644
---- a/gcc/config/xtensa/xtensa.c
-+++ b/gcc/config/xtensa/xtensa.c
-@@ -4182,7 +4182,10 @@ hwloop_optimize (hwloop_info loop)
-       entry_after = BB_END (entry_bb);
-       while (DEBUG_INSN_P (entry_after)
-              || (NOTE_P (entry_after)
--                 && NOTE_KIND (entry_after) != NOTE_INSN_BASIC_BLOCK))
-+                 && NOTE_KIND (entry_after) != NOTE_INSN_BASIC_BLOCK
-+		 /* Make sure we don't split a call and its corresponding
-+		    CALL_ARG_LOCATION note.  */
-+                 && NOTE_KIND (entry_after) != NOTE_INSN_CALL_ARG_LOCATION))
-         entry_after = PREV_INSN (entry_after);
- 
-       emit_insn_after (seq, entry_after);
--- 
-2.1.4
-
package/gcc/5.4.0/877-xtensa-fix-PR-target-82181.patch deleted +0 -31
deleted file mode 100644
index cbcca00..0000000
@@ -1,31 +0,0 @@
-From 136e0f6b0c0acbe547894c6f8c855e3246c558b4 Mon Sep 17 00:00:00 2001
-From: jcmvbkbc <jcmvbkbc@138bc75d-0d04-0410-961f-82ee72b054a4>
-Date: Mon, 11 Sep 2017 21:53:38 +0000
-Subject: [PATCH] xtensa: fix PR target/82181
-
-2017-09-11  Max Filippov  <[email protected]>
-gcc/
-	Backport from mainline
-	* config/xtensa/xtensa.c (xtensa_mem_offset): Check that both
-	words of DImode object are reachable by xtensa_uimm8x4 access.
-
-Signed-off-by: Max Filippov <[email protected]>
----
- gcc/config/xtensa/xtensa.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
-index 8e62d631bce0..a30aa1bcfc33 100644
---- a/gcc/config/xtensa/xtensa.c
-+++ b/gcc/config/xtensa/xtensa.c
-@@ -637,6 +637,7 @@ xtensa_mem_offset (unsigned v, machine_mode mode)
-     case HImode:
-       return xtensa_uimm8x2 (v);
- 
-+    case DImode:
-     case DFmode:
-       return (xtensa_uimm8x4 (v) && xtensa_uimm8x4 (v + 4));
- 
--- 
-2.1.4
-
package/gcc/5.4.0/942-asan-fix-missing-include-signal-h.patch deleted +0 -36
deleted file mode 100644
index 5f00c04..0000000
@@ -1,36 +0,0 @@
-From 205aa8e97bab553e5e6fe45896325e97962de704 Mon Sep 17 00:00:00 2001
-From: Rolf Eike Beer <[email protected]>
-Date: Wed, 8 Feb 2017 11:42:52 +0100
-Subject: [PATCH] asan: fix missing include of signal.h
-
-This breaks when building gcc 4.9.4 / 5.4.0 with
-target_platform=powerpc-unknown-linux-gnu with glibc 2.25:
-
-../../../../gcc-host/libsanitizer/asan/asan_linux.cc: In function 'bool __asan::AsanInterceptsSignal(int)':
-../../../../gcc-host/libsanitizer/asan/asan_linux.cc:222:20: error: 'SIGSEGV' was not declared in this scope
-   return signum == SIGSEGV && common_flags()->handle_segv;
-
-This has been verified to apply to at least 4.9.4 and up to 5.4,
-the code has been reworked for gcc 6.
-
-Resolves (Buildroot) Bug: https://bugs.busybox.net/show_bug.cgi?id=10061
-
-Upstream: https://patchwork.ozlabs.org/patch/725596/
-
-Signed-off-by: Matthew Weber <[email protected]>
----
- libsanitizer/asan/asan_linux.cc | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/libsanitizer/asan/asan_linux.cc b/libsanitizer/asan/asan_linux.cc
-index c504168..59087b9 100644
---- a/libsanitizer/asan/asan_linux.cc
-+++ b/libsanitizer/asan/asan_linux.cc
-@@ -29,6 +29,7 @@
- #include <dlfcn.h>
- #include <fcntl.h>
- #include <pthread.h>
-+#include <signal.h>
- #include <stdio.h>
- #include <unistd.h>
- #include <unwind.h>
package/gcc/5.4.0/943-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch deleted +0 -192

192 lines not on this page · raw message

package/gcc/5.4.0/944-sanitizer-linux.patch deleted +0 -91

91 lines not on this page · raw message

package/gcc/5.5.0/100-uclibc-conf.patch renamed from package/gcc/5.4.0/100-uclibc-conf.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/100-uclibc-conf.patch
rename to package/gcc/5.5.0/100-uclibc-conf.patch
package/gcc/5.5.0/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch renamed from package/gcc/5.4.0/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch
rename to package/gcc/5.5.0/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch
package/gcc/5.5.0/301-missing-execinfo_h.patch renamed from package/gcc/5.4.0/301-missing-execinfo_h.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/301-missing-execinfo_h.patch
rename to package/gcc/5.5.0/301-missing-execinfo_h.patch
package/gcc/5.5.0/810-arm-softfloat-libgcc.patch renamed from package/gcc/5.4.0/810-arm-softfloat-libgcc.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/810-arm-softfloat-libgcc.patch
rename to package/gcc/5.5.0/810-arm-softfloat-libgcc.patch
package/gcc/5.5.0/830-arm_unbreak_armv4t.patch renamed from package/gcc/5.4.0/830-arm_unbreak_armv4t.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/830-arm_unbreak_armv4t.patch
rename to package/gcc/5.5.0/830-arm_unbreak_armv4t.patch
package/gcc/5.5.0/831-ARM-PR-target-70473-Reduce-size-of-Cortex-A8-automat.patch renamed from package/gcc/5.4.0/831-ARM-PR-target-70473-Reduce-size-of-Cortex-A8-automat.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/831-ARM-PR-target-70473-Reduce-size-of-Cortex-A8-automat.patch
rename to package/gcc/5.5.0/831-ARM-PR-target-70473-Reduce-size-of-Cortex-A8-automat.patch
package/gcc/5.5.0/840-microblaze-enable-dwarf-eh-support.patch renamed from package/gcc/5.4.0/840-microblaze-enable-dwarf-eh-support.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/840-microblaze-enable-dwarf-eh-support.patch
rename to package/gcc/5.5.0/840-microblaze-enable-dwarf-eh-support.patch
package/gcc/5.5.0/850-libstdcxx-uclibc-c99.patch renamed from package/gcc/5.4.0/850-libstdcxx-uclibc-c99.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/850-libstdcxx-uclibc-c99.patch
rename to package/gcc/5.5.0/850-libstdcxx-uclibc-c99.patch
package/gcc/5.5.0/860-cilk-wchar.patch renamed from package/gcc/5.4.0/860-cilk-wchar.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/860-cilk-wchar.patch
rename to package/gcc/5.5.0/860-cilk-wchar.patch
package/gcc/5.5.0/870-xtensa-add-mauto-litpools-option.patch renamed from package/gcc/5.4.0/870-xtensa-add-mauto-litpools-option.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/870-xtensa-add-mauto-litpools-option.patch
rename to package/gcc/5.5.0/870-xtensa-add-mauto-litpools-option.patch
package/gcc/5.5.0/871-xtensa-reimplement-register-spilling.patch renamed from package/gcc/5.4.0/871-xtensa-reimplement-register-spilling.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/871-xtensa-reimplement-register-spilling.patch
rename to package/gcc/5.5.0/871-xtensa-reimplement-register-spilling.patch
package/gcc/5.5.0/874-xtensa-add-uclinux-support.patch renamed from package/gcc/5.4.0/874-xtensa-add-uclinux-support.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/874-xtensa-add-uclinux-support.patch
rename to package/gcc/5.5.0/874-xtensa-add-uclinux-support.patch
package/gcc/5.5.0/875-xtensa-implement-trap-pattern.patch renamed from package/gcc/5.4.0/875-xtensa-implement-trap-pattern.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/875-xtensa-implement-trap-pattern.patch
rename to package/gcc/5.5.0/875-xtensa-implement-trap-pattern.patch
package/gcc/5.5.0/880-gcc-nios2-Add-IJMP_REGS-enum.patch renamed from package/gcc/5.4.0/880-gcc-nios2-Add-IJMP_REGS-enum.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/880-gcc-nios2-Add-IJMP_REGS-enum.patch
rename to package/gcc/5.5.0/880-gcc-nios2-Add-IJMP_REGS-enum.patch
package/gcc/5.5.0/890-fix-m68k-compile.patch renamed from package/gcc/5.4.0/890-fix-m68k-compile.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/890-fix-m68k-compile.patch
rename to package/gcc/5.5.0/890-fix-m68k-compile.patch
package/gcc/5.5.0/891-fix-m68k-uclinux.patch renamed from package/gcc/5.4.0/891-fix-m68k-uclinux.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/891-fix-m68k-uclinux.patch
rename to package/gcc/5.5.0/891-fix-m68k-uclinux.patch
package/gcc/5.5.0/900-libitm-fixes-for-musl-support.patch renamed from package/gcc/5.4.0/900-libitm-fixes-for-musl-support.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/900-libitm-fixes-for-musl-support.patch
rename to package/gcc/5.5.0/900-libitm-fixes-for-musl-support.patch
package/gcc/5.5.0/901-fixincludes-update-for-musl-support.patch renamed from package/gcc/5.4.0/901-fixincludes-update-for-musl-support.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/901-fixincludes-update-for-musl-support.patch
rename to package/gcc/5.5.0/901-fixincludes-update-for-musl-support.patch
package/gcc/5.5.0/902-unwind-fix-for-musl.patch renamed from package/gcc/5.4.0/902-unwind-fix-for-musl.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/902-unwind-fix-for-musl.patch
rename to package/gcc/5.5.0/902-unwind-fix-for-musl.patch
package/gcc/5.5.0/903-libstdc++-libgfortran-gthr-workaround-for-musl.patch renamed from package/gcc/5.4.0/903-libstdc++-libgfortran-gthr-workaround-for-musl.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/903-libstdc++-libgfortran-gthr-workaround-for-musl.patch
rename to package/gcc/5.5.0/903-libstdc++-libgfortran-gthr-workaround-for-musl.patch
package/gcc/5.5.0/904-musl-libc-config.patch renamed from package/gcc/5.4.0/904-musl-libc-config.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/904-musl-libc-config.patch
rename to package/gcc/5.5.0/904-musl-libc-config.patch
package/gcc/5.5.0/905-add-musl-support-to-gcc.patch renamed from package/gcc/5.4.0/905-add-musl-support-to-gcc.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/905-add-musl-support-to-gcc.patch
rename to package/gcc/5.5.0/905-add-musl-support-to-gcc.patch
package/gcc/5.5.0/906-mips-musl-support.patch renamed from package/gcc/5.4.0/906-mips-musl-support.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/906-mips-musl-support.patch
rename to package/gcc/5.5.0/906-mips-musl-support.patch
package/gcc/5.5.0/907-x86-musl-support.patch renamed from package/gcc/5.4.0/907-x86-musl-support.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/907-x86-musl-support.patch
rename to package/gcc/5.5.0/907-x86-musl-support.patch
package/gcc/5.5.0/908-arm-musl-support.patch renamed from package/gcc/5.4.0/908-arm-musl-support.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/908-arm-musl-support.patch
rename to package/gcc/5.5.0/908-arm-musl-support.patch
package/gcc/5.5.0/909-aarch64-musl-support.patch renamed from package/gcc/5.4.0/909-aarch64-musl-support.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/909-aarch64-musl-support.patch
rename to package/gcc/5.5.0/909-aarch64-musl-support.patch
package/gcc/5.5.0/910-microblaze-musl-and-uclibc.patch renamed from package/gcc/5.4.0/910-microblaze-musl-and-uclibc.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/910-microblaze-musl-and-uclibc.patch
rename to package/gcc/5.5.0/910-microblaze-musl-and-uclibc.patch
package/gcc/5.5.0/911-ppc-musl-support.patch renamed from package/gcc/5.4.0/911-ppc-musl-support.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/911-ppc-musl-support.patch
rename to package/gcc/5.5.0/911-ppc-musl-support.patch
package/gcc/5.5.0/912-sh-musl-support.patch renamed from package/gcc/5.4.0/912-sh-musl-support.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/912-sh-musl-support.patch
rename to package/gcc/5.5.0/912-sh-musl-support.patch
package/gcc/5.5.0/930-libgcc-disable-split-stack-nothreads.patch renamed from package/gcc/5.4.0/930-libgcc-disable-split-stack-nothreads.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/930-libgcc-disable-split-stack-nothreads.patch
rename to package/gcc/5.5.0/930-libgcc-disable-split-stack-nothreads.patch
package/gcc/5.5.0/940-uclinux-enable-threads.patch renamed from package/gcc/5.4.0/940-uclinux-enable-threads.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/940-uclinux-enable-threads.patch
rename to package/gcc/5.5.0/940-uclinux-enable-threads.patch
package/gcc/5.5.0/941-mips-Add-support-for-mips-r6-musl.patch renamed from package/gcc/5.4.0/941-mips-Add-support-for-mips-r6-musl.patch +0 -0
similarity index 100%
rename from package/gcc/5.4.0/941-mips-Add-support-for-mips-r6-musl.patch
rename to package/gcc/5.5.0/941-mips-Add-support-for-mips-r6-musl.patch
package/gcc/Config.in.host +1 -1
index 1115554..89f1ee2 100644
@@ -89,7 +89,7 @@ config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
 config BR2_GCC_VERSION
 	string
 	default "4.9.4"     if BR2_GCC_VERSION_4_9_X
-	default "5.4.0"     if BR2_GCC_VERSION_5_X
+	default "5.5.0"     if BR2_GCC_VERSION_5_X
 	default "6.4.0"     if BR2_GCC_VERSION_6_X
 	default "7.2.0"     if BR2_GCC_VERSION_7_X
 	default "arc-2017.09-rc1" if BR2_GCC_VERSION_ARC
package/gcc/gcc.hash +2 -2
index 7d4d435..cd6fdef 100644
@@ -1,7 +1,7 @@
 # From ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.9.4/sha512.sum
 sha512  93abb78e16277454f41a8e9810f41f66c0fdffdc539a762ff6b67d3037f78db971378683fd2ebf707d1d51c059fad2161fe42d110c330027f40214b7db0f3efe  gcc-4.9.4.tar.bz2
-# From ftp://gcc.gnu.org/pub/gcc/releases/gcc-5.4.0/sha512.sum
-sha512  2941cc950c8f2409a314df497631f9b0266211aa74746c1839c46e04f1c7c299afe2528d1ef16ea39def408a644ba48f97519ec7a7dd37d260c3e9423514265b  gcc-5.4.0.tar.bz2
+# From ftp://gcc.gnu.org/pub/gcc/releases/gcc-5.5.0/sha512.sum
+sha512  670ff52c2ae12c7852c12987e91798c5aa8bd6daf21f0d6e0cd57a4aa59cc4f06a837fe76426eaa1424cfddca937bed377680700eadc04d76b9180d462364fa1  gcc-5.5.0.tar.xz
 # From ftp://gcc.gnu.org/pub/gcc/releases/gcc-6.4.0/sha512.sum
 sha512  02c60e54527c7adf584798d5251f8a0b80c93d5deafce82501b2c28e6692e0bd783927bbfc4bc527a863c0cccc025150a34740a9e29badb02d4b48e56a8aba90  gcc-6.4.0.tar.xz
 # From ftp://gcc.gnu.org/pub/gcc/releases/gcc-7.2.0/sha512.sum
package/gcc/gcc.mk +3 -3
index 54ef70c..6bdd6c8 100644
@@ -18,9 +18,9 @@ GCC_SITE = $(call github,openrisc,or1k-gcc,$(GCC_VERSION))
 GCC_SOURCE = gcc-$(GCC_VERSION).tar.gz
 else
 GCC_SITE = $(BR2_GNU_MIRROR:/=)/gcc/gcc-$(GCC_VERSION)
-# From version 6.4.0 and 7.2.0 a bz2 release tarball is not provided
-# anymore. Use the xz tarball instead.
-ifeq ($(BR2_GCC_VERSION_6_X)$(BR2_GCC_VERSION_7_X),y)
+# From version 5.5.0, 6.4.0 and 7.2.0 a bz2 release tarball is not
+# provided anymore. Use the xz tarball instead.
+ifeq ($(BR2_GCC_VERSION_5_X)$(BR2_GCC_VERSION_6_X)$(BR2_GCC_VERSION_7_X),y)
 GCC_SOURCE = gcc-$(GCC_VERSION).tar.xz
 else
 GCC_SOURCE = gcc-$(GCC_VERSION).tar.bz2
Signature · 1 line
2.9.5
#1 lore raw

PATCH 1/1 package/glibc: fix signbit build issue with gcc < 6.x

As reported in [1], mesa3d package fail to build with a x86_64 toolchain using gcc 5.5.0 and glibc 2.26.

Add a new patch providing signbit() functions for C++ that does not use __MATH_TG macro.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=22296

---
 ...-version-of-signbit-that-does-not-use-__M.patch | 65 ++++++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 package/glibc/0007-Provide-a-C-version-of-signbit-that-does-not-use-__M.patch
package/glibc/0007-Provide-a-C-version-of-signbit-that-does-not-use-__M.patch new file +65 -0
new file mode 100644
index 0000000..ea7a4e7
@@ -0,0 +1,65 @@
+From 2a735f52ec321f06b2af4b4265160d54260e5c44 Mon Sep 17 00:00:00 2001
+From: Romain Naour <[email protected]>
+Date: Sun, 15 Oct 2017 20:04:24 +0200
+Subject: [PATCH] Provide a C++ version of signbit that does not use __MATH_TG
+ (bug 22296)
+
+The macro __MATH_TG contains the logic to select between long double and
+_Float128, when these types are ABI-distinct.  This logic relies on
+__builtin_types_compatible_p, which is not available in C++ mode.
+
+On the other hand, C++ function overloading provides the means to
+distinguish between the floating-point types.  The overloading
+resolution will match the correct parameter regardless of type
+qualifiers, i.e.: const and volatile.
+
+This is the same fix as for issignaling [1] but the issue appear
+only with gcc < 6.x. Since GCC 6.0, __builtin_signbit is type-generic,
+so signbit() is defined without __MATH_TG.
+
+Tested for x86_64.
+
+	* math/math.h [defined __cplusplus] (signbit): Provide a C++
+	definition for signbit that does not rely on __MATH_TG,
+	since __MATH_TG uses __builtin_types_compatible_p, which is only
+	available in C mode.
+
+[1] a16e8bc08edca84d507715c66d6cddbbc7ed3b62
+
+Signed-off-by: Romain Naour <[email protected]>
+---
+patch status: submited upstream
+https://sourceware.org/ml/libc-alpha/2017-10/msg00654.html
+---
+ math/math.h | 15 +++++++++++++++
+ 1 file changed, 15 insertions(+)
+
+diff --git a/math/math.h b/math/math.h
+index 2b216c6..0013ad9 100644
+--- a/math/math.h
++++ b/math/math.h
+@@ -418,6 +418,21 @@ enum
+ /* Return nonzero value if sign of X is negative.  */
+ # if __GNUC_PREREQ (6,0)
+ #  define signbit(x) __builtin_signbit (x)
++# elif defined __cplusplus
++   /* In C++ mode, __MATH_TG cannot be used, because it relies on
++      __builtin_types_compatible_p, which is a C-only builtin.  On the
++      other hand, overloading provides the means to distinguish between
++      the floating-point types.  The overloading resolution will match
++      the correct parameter (regardless of type qualifiers (i.e.: const
++      and volatile).  */
++extern "C++" {
++inline int signbit (float __val) { return __signbitf (__val); }
++inline int signbit (double __val) { return __signbit (__val); }
++inline int signbit (long double __val) { return __signbitl (__val); }
++#  if __HAVE_DISTINCT_FLOAT128
++inline int signbit (_Float128 __val) { return __signbitf128 (__val); }
++#  endif
++} /* extern C++ */
+ # elif __GNUC_PREREQ (4,0)
+ #  define signbit(x) __MATH_TG ((x), __builtin_signbit, (x))
+ # else
+-- 
+2.9.5
+
Signature · 1 line
2.9.5
#2 lore raw

PATCH 1/1 package/glibc: fix signbit build issue with gcc < 6.x

Hi All,

Le 15/10/2017 ? 23:57, Romain Naour a ?crit?:

Quoted 7 lines

As reported in [1], mesa3d package fail to build with a x86_64 toolchain using gcc 5.5.0 and glibc 2.26.

Add a new patch providing signbit() functions for C++ that does not use __MATH_TG macro.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=22296

I withdraw this patch since it's not the correct fix [1]

[1] https://sourceware.org/ml/libc-alpha/2017-10/msg00703.html

Best regards,
Romain

Quoted 79 lines
---
 ...-version-of-signbit-that-does-not-use-__M.patch | 65 ++++++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 package/glibc/0007-Provide-a-C-version-of-signbit-that-does-not-use-__M.patch
package/glibc/0007-Provide-a-C-version-of-signbit-that-does-not-use-__M.patch new file +65 -0
new file mode 100644
index 0000000..ea7a4e7
@@ -0,0 +1,65 @@
+From 2a735f52ec321f06b2af4b4265160d54260e5c44 Mon Sep 17 00:00:00 2001
+From: Romain Naour <[email protected]>
+Date: Sun, 15 Oct 2017 20:04:24 +0200
+Subject: [PATCH] Provide a C++ version of signbit that does not use __MATH_TG
+ (bug 22296)
+
+The macro __MATH_TG contains the logic to select between long double and
+_Float128, when these types are ABI-distinct.  This logic relies on
+__builtin_types_compatible_p, which is not available in C++ mode.
+
+On the other hand, C++ function overloading provides the means to
+distinguish between the floating-point types.  The overloading
+resolution will match the correct parameter regardless of type
+qualifiers, i.e.: const and volatile.
+
+This is the same fix as for issignaling [1] but the issue appear
+only with gcc < 6.x. Since GCC 6.0, __builtin_signbit is type-generic,
+so signbit() is defined without __MATH_TG.
+
+Tested for x86_64.
+
+	* math/math.h [defined __cplusplus] (signbit): Provide a C++
+	definition for signbit that does not rely on __MATH_TG,
+	since __MATH_TG uses __builtin_types_compatible_p, which is only
+	available in C mode.
+
+[1] a16e8bc08edca84d507715c66d6cddbbc7ed3b62
+
+Signed-off-by: Romain Naour <[email protected]>
+---
+patch status: submited upstream
+https://sourceware.org/ml/libc-alpha/2017-10/msg00654.html
+---
+ math/math.h | 15 +++++++++++++++
+ 1 file changed, 15 insertions(+)
+
+diff --git a/math/math.h b/math/math.h
+index 2b216c6..0013ad9 100644
+--- a/math/math.h
++++ b/math/math.h
+@@ -418,6 +418,21 @@ enum
+ /* Return nonzero value if sign of X is negative.  */
+ # if __GNUC_PREREQ (6,0)
+ #  define signbit(x) __builtin_signbit (x)
++# elif defined __cplusplus
++   /* In C++ mode, __MATH_TG cannot be used, because it relies on
++      __builtin_types_compatible_p, which is a C-only builtin.  On the
++      other hand, overloading provides the means to distinguish between
++      the floating-point types.  The overloading resolution will match
++      the correct parameter (regardless of type qualifiers (i.e.: const
++      and volatile).  */
++extern "C++" {
++inline int signbit (float __val) { return __signbitf (__val); }
++inline int signbit (double __val) { return __signbit (__val); }
++inline int signbit (long double __val) { return __signbitl (__val); }
++#  if __HAVE_DISTINCT_FLOAT128
++inline int signbit (_Float128 __val) { return __signbitf128 (__val); }
++#  endif
++} /* extern C++ */
+ # elif __GNUC_PREREQ (4,0)
+ #  define signbit(x) __MATH_TG ((x), __builtin_signbit, (x))
+ # else
+-- 
+2.9.5
+
#3 lore raw

PATCH 1/1 package/gcc: bump to 5.5.0

In reply to Romain Naour
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Romain" == Romain Naour <[email protected]> writes:

Remove xtensa patches included in this release:
872-xtensa-use-unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch 873-xtensa-fix-_Unwind_GetCFA.patch 876-xtensa-Fix-PR-target-78603.patch 877-xtensa-fix-PR-target-82181.patch

Quoted 8 lines

Remove upstream patch:
942-asan-fix-missing-include-signal-h.patch

Remove backported patches for glibc >= 2.26 943-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch 944-sanitizer-linux.patch

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard