gcc: bump 4.9 series to 4.9.4
PATCH 1/1 gcc: bump 4.9 series to 4.9.4
Two patches are removed, as they have been upstreamed:
- 130-fix_build_with_gcc-6.patch (svn commit 233721, Git commit 8c3fa311caa86f61b4e28d1563d1110b44340fb2)
- 920-libgcc-remove-unistd-header.patch (svn commit 226092, Git commit e940d7953f06af11d09229a29ecbcc1ba25b378d)
All other patches have simply been refreshed, with no manual edit needed.
A build+runtime test has been done with an ARM, Cortex-A8, EABIhf, musl configuration, booted under Qemu.
---
package/gcc/4.9.3/130-fix_build_with_gcc-6.patch | 153 ---------------------
.../4.9.3/920-libgcc-remove-unistd-header.patch | 12 --
package/gcc/{4.9.3 => 4.9.4}/100-uclibc-conf.patch | 0
...00-powerpc-link-with-math-lib.patch.conditional | 28 ++--
package/gcc/{4.9.3 => 4.9.4}/111-pr65730.patch | 9 +-
...gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch | 11 +-
package/gcc/{4.9.3 => 4.9.4}/130-pr43538.patch | 0
...tizer-Fix-build-with-_FILE_OFFSET_BITS-64.patch | 0
.../{4.9.3 => 4.9.4}/301-missing-execinfo_h.patch | 0
.../810-arm-softfloat-libgcc.patch | 14 +-
.../{4.9.3 => 4.9.4}/830-arm_unbreak_armv4t.patch | 0
.../840-microblaze-enable-dwarf-eh-support.patch | 39 +++---
.../850-libstdcxx-uclibc-c99.patch | 135 ++++++++++--------
package/gcc/{4.9.3 => 4.9.4}/860-cilk-wchar.patch | 0
.../870-xtensa-add-mauto-litpools-option.patch | 61 ++++----
.../871-xtensa-reimplement-register-spilling.patch | 0
...unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch | 0
.../873-xtensa-fix-_Unwind_GetCFA.patch | 0
.../874-xtensa-add-uclinux-support.patch | 25 ++--
.../880-nios2_legitimize_address.patch | 0
.../{4.9.3 => 4.9.4}/890-fix-m68k-compile.patch | 0
.../{4.9.3 => 4.9.4}/891-fix-m68k-uclinux.patch | 0
.../gcc/{4.9.3 => 4.9.4}/900-musl-support.patch | 14 +-
.../{4.9.3 => 4.9.4}/901-microblaze-uclibc.patch | 0
.../930-libgcc-disable-split-stack-nothreads.patch | 0
.../940-uclinux-enable-threads.patch | 9 +-
package/gcc/Config.in.host | 2 +-
package/gcc/gcc.hash | 4 +-
28 files changed, 177 insertions(+), 339 deletions(-)
delete mode 100644 package/gcc/4.9.3/130-fix_build_with_gcc-6.patch
delete mode 100644 package/gcc/4.9.3/920-libgcc-remove-unistd-header.patch
rename package/gcc/{4.9.3 => 4.9.4}/100-uclibc-conf.patch (100%)
rename package/gcc/{4.9.3 => 4.9.4}/1000-powerpc-link-with-math-lib.patch.conditional (84%)
rename package/gcc/{4.9.3 => 4.9.4}/111-pr65730.patch (85%)
rename package/gcc/{4.9.3 => 4.9.4}/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch (87%)
rename package/gcc/{4.9.3 => 4.9.4}/130-pr43538.patch (100%)
rename package/gcc/{4.9.3 => 4.9.4}/140-sanitizer-Fix-build-with-_FILE_OFFSET_BITS-64.patch (100%)
rename package/gcc/{4.9.3 => 4.9.4}/301-missing-execinfo_h.patch (100%)
rename package/gcc/{4.9.3 => 4.9.4}/810-arm-softfloat-libgcc.patch (67%)
rename package/gcc/{4.9.3 => 4.9.4}/830-arm_unbreak_armv4t.patch (100%)
rename package/gcc/{4.9.3 => 4.9.4}/840-microblaze-enable-dwarf-eh-support.patch (81%)
rename package/gcc/{4.9.3 => 4.9.4}/850-libstdcxx-uclibc-c99.patch (48%)
rename package/gcc/{4.9.3 => 4.9.4}/860-cilk-wchar.patch (100%)
rename package/gcc/{4.9.3 => 4.9.4}/870-xtensa-add-mauto-litpools-option.patch (87%)
rename package/gcc/{4.9.3 => 4.9.4}/871-xtensa-reimplement-register-spilling.patch (100%)
rename package/gcc/{4.9.3 => 4.9.4}/872-xtensa-use-unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch (100%)
rename package/gcc/{4.9.3 => 4.9.4}/873-xtensa-fix-_Unwind_GetCFA.patch (100%)
rename package/gcc/{4.9.3 => 4.9.4}/874-xtensa-add-uclinux-support.patch (91%)
rename package/gcc/{4.9.3 => 4.9.4}/880-nios2_legitimize_address.patch (100%)
rename package/gcc/{4.9.3 => 4.9.4}/890-fix-m68k-compile.patch (100%)
rename package/gcc/{4.9.3 => 4.9.4}/891-fix-m68k-uclinux.patch (100%)
rename package/gcc/{4.9.3 => 4.9.4}/900-musl-support.patch (99%)
rename package/gcc/{4.9.3 => 4.9.4}/901-microblaze-uclibc.patch (100%)
rename package/gcc/{4.9.3 => 4.9.4}/930-libgcc-disable-split-stack-nothreads.patch (100%)
rename package/gcc/{4.9.3 => 4.9.4}/940-uclinux-enable-threads.patch (65%)package/gcc/4.9.3/130-fix_build_with_gcc-6.patch deleted +0 -153
@@ -1,153 +0,0 @@ -From 1e5f1089dec3af328fd03125d6778f666d0bd4e4 Mon Sep 17 00:00:00 2001 -From: edlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4> -Date: Thu, 25 Feb 2016 15:33:50 +0000 -Subject: [PATCH 1/1] 2016-02-25 Bernd Edlinger <[email protected]> - - Backported from mainline - 2016-02-19 Jakub Jelinek <[email protected]> - Bernd Edlinger <[email protected]> - - * Make-lang.in: Invoke gperf with -L C++. - * cfns.gperf: Remove prototypes for hash and libc_name_p - inlines. - * cfns.h: Regenerated. - * except.c (nothrow_libfn_p): Adjust. - - -git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch at 233720 138bc75d-0d04-0410-961f-82ee72b054a4 - -Signed-off-by: Samuel Martin <[email protected]> ---- - gcc/cp/Make-lang.in | 2 +- - gcc/cp/cfns.gperf | 10 ++-------- - gcc/cp/cfns.h | 41 ++++++++++++++--------------------------- - gcc/cp/except.c | 3 ++- - 5 files changed, 31 insertions(+), 37 deletions(-) - -diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in -index e98beb1..b09fb02 100644 ---- a/gcc/cp/Make-lang.in -+++ b/gcc/cp/Make-lang.in -@@ -111,7 +111,7 @@ else - # deleting the $(srcdir)/cp/cfns.h file. - $(srcdir)/cp/cfns.h: - endif -- gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L ANSI-C \ -+ gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L C++ \ - $(srcdir)/cp/cfns.gperf --output-file $(srcdir)/cp/cfns.h - - # -diff --git a/gcc/cp/cfns.gperf b/gcc/cp/cfns.gperf -index 68acd3d..214ecf6 100644 ---- a/gcc/cp/cfns.gperf -+++ b/gcc/cp/cfns.gperf -@@ -1,3 +1,5 @@ -+%language=C++ -+%define class-name libc_name - %{ - /* Copyright (C) 2000-2015 Free Software Foundation, Inc. - -@@ -16,14 +18,6 @@ for more details. - You should have received a copy of the GNU General Public License - along with GCC; see the file COPYING3. If not see - <http://www.gnu.org/licenses/>. */ --#ifdef __GNUC__ --__inline --#endif --static unsigned int hash (const char *, unsigned int); --#ifdef __GNUC__ --__inline --#endif --const char * libc_name_p (const char *, unsigned int); - %} - %% - # The standard C library functions, for feeding to gperf; the result is used -diff --git a/gcc/cp/cfns.h b/gcc/cp/cfns.h -index 1c6665d..596f413 100644 ---- a/gcc/cp/cfns.h -+++ b/gcc/cp/cfns.h -@@ -1,5 +1,5 @@ --/* ANSI-C code produced by gperf version 3.0.3 */ --/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L ANSI-C cfns.gperf */ -+/* C++ code produced by gperf version 3.0.4 */ -+/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L C++ --output-file cfns.h cfns.gperf */ - - #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ - && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ -@@ -28,7 +28,7 @@ - #error "gperf generated tables don't work with this execution character set. Please report a bug to <[email protected]>." - #endif - --#line 1 "cfns.gperf" -+#line 3 "cfns.gperf" - - /* Copyright (C) 2000-2015 Free Software Foundation, Inc. - -@@ -47,25 +47,18 @@ for more details. - You should have received a copy of the GNU General Public License - along with GCC; see the file COPYING3. If not see - <http://www.gnu.org/licenses/>. */ --#ifdef __GNUC__ --__inline --#endif --static unsigned int hash (const char *, unsigned int); --#ifdef __GNUC__ --__inline --#endif --const char * libc_name_p (const char *, unsigned int); - /* maximum key range = 391, duplicates = 0 */ - --#ifdef __GNUC__ --__inline --#else --#ifdef __cplusplus --inline --#endif --#endif --static unsigned int --hash (register const char *str, register unsigned int len) -+class libc_name -+{ -+private: -+ static inline unsigned int hash (const char *str, unsigned int len); -+public: -+ static const char *libc_name_p (const char *str, unsigned int len); -+}; -+ -+inline unsigned int -+libc_name::hash (register const char *str, register unsigned int len) - { - static const unsigned short asso_values[] = - { -@@ -122,14 +115,8 @@ hash (register const char *str, register unsigned int len) - return hval + asso_values[(unsigned char)str[len - 1]]; - } - --#ifdef __GNUC__ --__inline --#ifdef __GNUC_STDC_INLINE__ --__attribute__ ((__gnu_inline__)) --#endif --#endif - const char * --libc_name_p (register const char *str, register unsigned int len) -+libc_name::libc_name_p (register const char *str, register unsigned int len) - { - enum - { -diff --git a/gcc/cp/except.c b/gcc/cp/except.c -index 3ff1ce6..2f2e396 100644 ---- a/gcc/cp/except.c -+++ b/gcc/cp/except.c -@@ -1040,7 +1040,8 @@ nothrow_libfn_p (const_tree fn) - unless the system headers are playing rename tricks, and if - they are, we don't want to be confused by them. */ - id = DECL_NAME (fn); -- return !!libc_name_p (IDENTIFIER_POINTER (id), IDENTIFIER_LENGTH (id)); -+ return !!libc_name::libc_name_p (IDENTIFIER_POINTER (id), -+ IDENTIFIER_LENGTH (id)); - } - - /* Returns nonzero if an exception of type FROM will be caught by a --- -1.7.1
package/gcc/4.9.3/920-libgcc-remove-unistd-header.patch deleted +0 -12
@@ -1,12 +0,0 @@ -Upstream status: In progress - ---- a/libgcc/config/nios2/linux-atomic.c -+++ b/libgcc/config/nios2/linux-atomic.c -@@ -20,7 +20,6 @@ - see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - <http://www.gnu.org/licenses/>. */ - --#include <asm/unistd.h> - #define EFAULT 14 - #define EBUSY 16 - #define ENOSYS 38
package/gcc/4.9.4/100-uclibc-conf.patch renamed from package/gcc/4.9.3/100-uclibc-conf.patch +0 -0
package/gcc/4.9.4/1000-powerpc-link-with-math-lib.patch.conditional renamed from package/gcc/4.9.3/1000-powerpc-link-with-math-lib.patch.conditional +14 -14
@@ -14,19 +14,19 @@ Forward port to gcc 4.5.1 by Gustavo Zacarias <[email protected]> libgcc/configure.ac | 21 +++++++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) -Index: gcc-4.8.0/libgcc/Makefile.in +Index: b/libgcc/Makefile.in =================================================================== ---- gcc-4.8.0.orig/libgcc/Makefile.in 2013-02-04 20:06:20.000000000 +0100 -+++ gcc-4.8.0/libgcc/Makefile.in 2013-03-24 09:12:43.000000000 +0100 -@@ -41,6 +41,7 @@ - decimal_float = @decimal_float@ +--- a/libgcc/Makefile.in ++++ b/libgcc/Makefile.in +@@ -42,6 +42,7 @@ + enable_vtable_verify = @enable_vtable_verify@ enable_decimal_float = @enable_decimal_float@ fixed_point = @fixed_point@ +LIBGCC_LIBM = @LIBGCC_LIBM@ host_noncanonical = @host_noncanonical@ target_noncanonical = @target_noncanonical@ -@@ -927,9 +928,10 @@ +@@ -943,9 +944,10 @@ @multilib_dir@,$(MULTIDIR),$(subst \ @shlib_objs@,$(objects) libgcc.a,$(subst \ @shlib_base_name@,libgcc_s,$(subst \
@@ -38,10 +38,10 @@ Index: gcc-4.8.0/libgcc/Makefile.in libunwind$(SHLIB_EXT): $(libunwind-s-objects) $(extra-parts) # @multilib_flags@ is still needed because this may use -Index: gcc-4.8.0/libgcc/configure +Index: b/libgcc/configure =================================================================== ---- gcc-4.8.0.orig/libgcc/configure 2012-11-05 00:08:42.000000000 +0100 -+++ gcc-4.8.0/libgcc/configure 2013-03-24 09:12:43.000000000 +0100 +--- a/libgcc/configure ++++ b/libgcc/configure @@ -564,6 +564,7 @@ tmake_file sfp_machine_header
@@ -50,7 +50,7 @@ Index: gcc-4.8.0/libgcc/configure set_have_cc_tls vis_hide fixed_point -@@ -4481,6 +4482,37 @@ +@@ -4535,6 +4536,37 @@ fi fi
@@ -88,11 +88,11 @@ Index: gcc-4.8.0/libgcc/configure # Conditionalize the makefile for this target machine. tmake_file_= -Index: gcc-4.8.0/libgcc/configure.ac +Index: b/libgcc/configure.ac =================================================================== ---- gcc-4.8.0.orig/libgcc/configure.ac 2012-10-15 15:10:30.000000000 +0200 -+++ gcc-4.8.0/libgcc/configure.ac 2013-03-24 09:12:43.000000000 +0100 -@@ -326,6 +326,27 @@ +--- a/libgcc/configure.ac ++++ b/libgcc/configure.ac +@@ -357,6 +357,27 @@ fi AC_SUBST(set_have_cc_tls)
package/gcc/4.9.4/111-pr65730.patch renamed from package/gcc/4.9.3/111-pr65730.patch +3 -6
@@ -16,11 +16,11 @@ Changes to ChangeLog are dropped. gcc/config/xtensa/xtensa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c -index eb039ba..7296e36 100644 +Index: b/gcc/config/xtensa/xtensa.c +=================================================================== --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c -@@ -1461,8 +1461,9 @@ init_alignment_context (struct alignment_context *ac, rtx mem) +@@ -1436,8 +1436,9 @@ if (ac->shift != NULL_RTX) { /* Shift is the byte count, but we need the bitcount. */
@@ -32,6 +32,3 @@ index eb039ba..7296e36 100644 NULL_RTX, 1, OPTAB_DIRECT); ac->modemask = expand_simple_binop (SImode, ASHIFT, GEN_INT (GET_MODE_MASK (mode)), --- -1.8.1.4 -
package/gcc/4.9.4/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch renamed from package/gcc/4.9.3/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch +4 -7
@@ -11,19 +11,16 @@ Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]> gcc/config.gcc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) -diff --git a/gcc/config.gcc b/gcc/config.gcc -index 4a7cbd2..9cc765e 100644 +Index: b/gcc/config.gcc +=================================================================== --- a/gcc/config.gcc +++ b/gcc/config.gcc -@@ -439,7 +439,7 @@ powerpc*-*-*) - cpu_type=rs6000 +@@ -441,7 +441,7 @@ extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h htmintrin.h htmxlintrin.h" + need_64bit_hwint=yes case x$with_cpu in - xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345678]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|Xe6500) + xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345678]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|xe6500) cpu_is_64bit=yes ;; esac --- -2.6.2 -
package/gcc/4.9.4/130-pr43538.patch renamed from package/gcc/4.9.3/130-pr43538.patch +0 -0
package/gcc/4.9.4/140-sanitizer-Fix-build-with-_FILE_OFFSET_BITS-64.patch renamed from package/gcc/4.9.3/140-sanitizer-Fix-build-with-_FILE_OFFSET_BITS-64.patch +0 -0
package/gcc/4.9.4/301-missing-execinfo_h.patch renamed from package/gcc/4.9.3/301-missing-execinfo_h.patch +0 -0
package/gcc/4.9.4/810-arm-softfloat-libgcc.patch renamed from package/gcc/4.9.3/810-arm-softfloat-libgcc.patch +7 -7
@@ -1,8 +1,8 @@ -Index: gcc-4.8.0/gcc/config/arm/linux-elf.h +Index: b/gcc/config/arm/linux-elf.h =================================================================== ---- gcc-4.8.0.orig/gcc/config/arm/linux-elf.h 2013-01-10 21:38:27.000000000 +0100 -+++ gcc-4.8.0/gcc/config/arm/linux-elf.h 2013-03-23 17:40:00.000000000 +0100 -@@ -55,7 +55,7 @@ +--- a/gcc/config/arm/linux-elf.h ++++ b/gcc/config/arm/linux-elf.h +@@ -60,7 +60,7 @@ %{shared:-lc} \ %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
@@ -11,10 +11,10 @@ Index: gcc-4.8.0/gcc/config/arm/linux-elf.h #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" -Index: gcc-4.8.0/libgcc/config/arm/t-linux +Index: b/libgcc/config/arm/t-linux =================================================================== ---- gcc-4.8.0.orig/libgcc/config/arm/t-linux 2012-03-22 16:14:46.000000000 +0100 -+++ gcc-4.8.0/libgcc/config/arm/t-linux 2013-03-23 17:40:54.000000000 +0100 +--- a/libgcc/config/arm/t-linux ++++ b/libgcc/config/arm/t-linux @@ -1,6 +1,11 @@ LIB1ASMSRC = arm/lib1funcs.S LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \
package/gcc/4.9.4/830-arm_unbreak_armv4t.patch renamed from package/gcc/4.9.3/830-arm_unbreak_armv4t.patch +0 -0
package/gcc/4.9.4/840-microblaze-enable-dwarf-eh-support.patch renamed from package/gcc/4.9.3/840-microblaze-enable-dwarf-eh-support.patch +18 -21
@@ -33,11 +33,11 @@ Signed-off-by: Edgar E. Iglesias <[email protected]> gcc/config/microblaze/microblaze.md | 11 +++++++++ 5 files changed, 52 insertions(+), 7 deletions(-) -diff --git a/gcc/common/config/microblaze/microblaze-common.c b/gcc/common/config/microblaze/microblaze-common.c -index 5835acc..85e6a53 100644 +Index: b/gcc/common/config/microblaze/microblaze-common.c +=================================================================== --- a/gcc/common/config/microblaze/microblaze-common.c +++ b/gcc/common/config/microblaze/microblaze-common.c -@@ -39,7 +39,4 @@ static const struct default_options microblaze_option_optimization_table[] = +@@ -37,7 +37,4 @@ #undef TARGET_OPTION_OPTIMIZATION_TABLE #define TARGET_OPTION_OPTIMIZATION_TABLE microblaze_option_optimization_table
@@ -45,11 +45,11 @@ index 5835acc..85e6a53 100644 -#define TARGET_EXCEPT_UNWIND_INFO sjlj_except_unwind_info - struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER; -diff --git a/gcc/config/microblaze/microblaze-protos.h b/gcc/config/microblaze/microblaze-protos.h -index c30ec72..260f4e4 100644 +Index: b/gcc/config/microblaze/microblaze-protos.h +=================================================================== --- a/gcc/config/microblaze/microblaze-protos.h +++ b/gcc/config/microblaze/microblaze-protos.h -@@ -56,6 +56,7 @@ extern bool microblaze_tls_referenced_p (rtx); +@@ -54,6 +54,7 @@ extern int symbol_mentioned_p (rtx); extern int label_mentioned_p (rtx); extern bool microblaze_cannot_force_const_mem (enum machine_mode, rtx);
@@ -57,11 +57,11 @@ index c30ec72..260f4e4 100644 #endif /* RTX_CODE */ /* Declare functions in microblaze-c.c. */ -diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c -index fe61fce..15166d3 100644 +Index: b/gcc/config/microblaze/microblaze.c +=================================================================== --- a/gcc/config/microblaze/microblaze.c +++ b/gcc/config/microblaze/microblaze.c -@@ -1999,6 +1999,11 @@ microblaze_must_save_register (int regno) +@@ -1906,6 +1906,11 @@ if (frame_pointer_needed && (regno == HARD_FRAME_POINTER_REGNUM)) return 1;
@@ -73,7 +73,7 @@ index fe61fce..15166d3 100644 if (!crtl->is_leaf) { if (regno == MB_ABI_SUB_RETURN_ADDR_REGNUM) -@@ -2026,6 +2031,13 @@ microblaze_must_save_register (int regno) +@@ -1933,6 +1938,13 @@ return 1; }
@@ -87,7 +87,7 @@ index fe61fce..15166d3 100644 return 0; } -@@ -3131,6 +3143,12 @@ microblaze_expand_epilogue (void) +@@ -2962,6 +2974,12 @@ emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx, fsiz_rtx)); }
@@ -100,7 +100,7 @@ index fe61fce..15166d3 100644 emit_jump_insn (gen_return_internal (gen_rtx_REG (Pmode, GP_REG_FIRST + MB_ABI_SUB_RETURN_ADDR_REGNUM))); } -@@ -3427,10 +3445,13 @@ microblaze_return_addr (int count, rtx frame ATTRIBUTE_UNUSED) +@@ -3256,10 +3274,13 @@ if (count != 0) return NULL_RTX;
@@ -118,11 +118,11 @@ index fe61fce..15166d3 100644 } /* Queue an .ident string in the queue of top-level asm statements. -diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h -index 4072283..5e9f49c 100644 +Index: b/gcc/config/microblaze/microblaze.h +=================================================================== --- a/gcc/config/microblaze/microblaze.h +++ b/gcc/config/microblaze/microblaze.h -@@ -184,6 +184,21 @@ extern enum pipeline_type microblaze_pipe; +@@ -184,6 +184,21 @@ #define INCOMING_RETURN_ADDR_RTX \ gen_rtx_REG (VOIDmode, GP_REG_FIRST + MB_ABI_SUB_RETURN_ADDR_REGNUM)
@@ -144,11 +144,11 @@ index 4072283..5e9f49c 100644 /* Use DWARF 2 debugging information by default. */ #define DWARF2_DEBUGGING_INFO #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG -diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md -index ed6131a..dc2405f 100644 +Index: b/gcc/config/microblaze/microblaze.md +=================================================================== --- a/gcc/config/microblaze/microblaze.md +++ b/gcc/config/microblaze/microblaze.md -@@ -2327,4 +2327,15 @@ +@@ -2261,4 +2261,15 @@ (set_attr "mode" "SI") (set_attr "length" "4")])
@@ -164,6 +164,3 @@ index ed6131a..dc2405f 100644 + (include "sync.md") + --- -1.8.3.2 -
package/gcc/4.9.4/850-libstdcxx-uclibc-c99.patch renamed from package/gcc/4.9.3/850-libstdcxx-uclibc-c99.patch +77 -58
249 lines not on this page · raw message
package/gcc/4.9.4/860-cilk-wchar.patch renamed from package/gcc/4.9.3/860-cilk-wchar.patch +0 -0
package/gcc/4.9.4/870-xtensa-add-mauto-litpools-option.patch renamed from package/gcc/4.9.3/870-xtensa-add-mauto-litpools-option.patch +29 -32
170 lines not on this page · raw message
package/gcc/4.9.4/871-xtensa-reimplement-register-spilling.patch renamed from package/gcc/4.9.3/871-xtensa-reimplement-register-spilling.patch +0 -0
package/gcc/4.9.4/872-xtensa-use-unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch renamed from package/gcc/4.9.3/872-xtensa-use-unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch +0 -0
package/gcc/4.9.4/873-xtensa-fix-_Unwind_GetCFA.patch renamed from package/gcc/4.9.3/873-xtensa-fix-_Unwind_GetCFA.patch +0 -0
package/gcc/4.9.4/874-xtensa-add-uclinux-support.patch renamed from package/gcc/4.9.3/874-xtensa-add-uclinux-support.patch +10 -15
@@ -24,11 +24,11 @@ Backported from: r228450 create mode 100644 gcc/config/xtensa/uclinux.h create mode 100644 gcc/config/xtensa/uclinux.opt -diff --git a/gcc/config.gcc b/gcc/config.gcc -index c52f5a8..56797bd 100644 +Index: b/gcc/config.gcc +=================================================================== --- a/gcc/config.gcc +++ b/gcc/config.gcc -@@ -2995,6 +2995,11 @@ xtensa*-*-linux*) +@@ -2871,6 +2871,11 @@ tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h xtensa/linux.h" tmake_file="${tmake_file} xtensa/t-xtensa" ;;
@@ -40,9 +40,8 @@ index c52f5a8..56797bd 100644 am33_2.0-*-linux*) tm_file="mn10300/mn10300.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h mn10300/linux.h" gas=yes gnu_ld=yes -diff --git a/gcc/config/xtensa/uclinux.h b/gcc/config/xtensa/uclinux.h -new file mode 100644 -index 0000000..4606020 +Index: b/gcc/config/xtensa/uclinux.h +=================================================================== --- /dev/null +++ b/gcc/config/xtensa/uclinux.h @@ -0,0 +1,69 @@
@@ -115,9 +114,8 @@ index 0000000..4606020 + +#undef DBX_REGISTER_NUMBER + -diff --git a/gcc/config/xtensa/uclinux.opt b/gcc/config/xtensa/uclinux.opt -new file mode 100644 -index 0000000..95ef777 +Index: b/gcc/config/xtensa/uclinux.opt +=================================================================== --- /dev/null +++ b/gcc/config/xtensa/uclinux.opt @@ -0,0 +1,32 @@
@@ -153,11 +151,11 @@ index 0000000..95ef777 +Driver JoinedOrMissing + +; This comment is to ensure we retain the blank line above. -diff --git a/libgcc/config.host b/libgcc/config.host -index 2c64756..2ee92c1 100644 +Index: b/libgcc/config.host +=================================================================== --- a/libgcc/config.host +++ b/libgcc/config.host -@@ -1295,6 +1295,11 @@ xtensa*-*-linux*) +@@ -1213,6 +1213,11 @@ tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc" md_unwind_header=xtensa/linux-unwind.h ;;
@@ -169,6 +167,3 @@ index 2c64756..2ee92c1 100644 am33_2.0-*-linux*) # Don't need crtbeginT.o from *-*-linux* default. extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" --- -1.8.1.4 -
package/gcc/4.9.4/880-nios2_legitimize_address.patch renamed from package/gcc/4.9.3/880-nios2_legitimize_address.patch +0 -0
package/gcc/4.9.4/890-fix-m68k-compile.patch renamed from package/gcc/4.9.3/890-fix-m68k-compile.patch +0 -0
package/gcc/4.9.4/891-fix-m68k-uclinux.patch renamed from package/gcc/4.9.3/891-fix-m68k-uclinux.patch +0 -0
package/gcc/4.9.4/900-musl-support.patch renamed from package/gcc/4.9.3/900-musl-support.patch +7 -7
@@ -60,7 +60,7 @@ Index: b/gcc/config.gcc *) tm_defines="$tm_defines DEFAULT_LIBC=LIBC_GLIBC" ;; -@@ -2322,6 +2325,10 @@ +@@ -2338,6 +2341,10 @@ powerpc*-*-linux*paired*) tm_file="${tm_file} rs6000/750cl.h" ;; esac
@@ -308,7 +308,7 @@ Index: b/gcc/config/microblaze/linux.h =================================================================== --- a/gcc/config/microblaze/linux.h +++ b/gcc/config/microblaze/linux.h -@@ -25,7 +25,23 @@ +@@ -28,7 +28,23 @@ #undef TLS_NEEDS_GOT #define TLS_NEEDS_GOT 1
@@ -337,7 +337,7 @@ Index: b/gcc/config/rs6000/linux64.h =================================================================== --- a/gcc/config/rs6000/linux64.h +++ b/gcc/config/rs6000/linux64.h -@@ -375,17 +375,23 @@ +@@ -371,17 +371,23 @@ #endif #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0" #define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
@@ -452,7 +452,7 @@ Index: b/gcc/configure =================================================================== --- a/gcc/configure +++ b/gcc/configure -@@ -27449,6 +27453,9 @@ +@@ -27601,6 +27601,9 @@ gcc_cv_target_dl_iterate_phdr=no fi ;;
@@ -466,7 +466,7 @@ Index: b/gcc/configure.ac =================================================================== --- a/gcc/configure.ac +++ b/gcc/configure.ac -@@ -5108,6 +5112,9 @@ +@@ -5173,6 +5173,9 @@ gcc_cv_target_dl_iterate_phdr=no fi ;;
@@ -588,7 +588,7 @@ Index: b/libstdc++-v3/configure.host =================================================================== --- a/libstdc++-v3/configure.host +++ b/libstdc++-v3/configure.host -@@ -264,6 +264,13 @@ +@@ -266,6 +266,13 @@ os_include_dir="os/bsd/freebsd" ;; gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
@@ -602,7 +602,7 @@ Index: b/libstdc++-v3/configure.host if [ "$uclibc" = "yes" ]; then os_include_dir="os/uclibc" elif [ "$bionic" = "yes" ]; then -@@ -272,6 +279,9 @@ +@@ -274,6 +281,9 @@ os_include_dir="os/gnu-linux" fi ;;
package/gcc/4.9.4/901-microblaze-uclibc.patch renamed from package/gcc/4.9.3/901-microblaze-uclibc.patch +0 -0
package/gcc/4.9.4/930-libgcc-disable-split-stack-nothreads.patch renamed from package/gcc/4.9.3/930-libgcc-disable-split-stack-nothreads.patch +0 -0
package/gcc/4.9.4/940-uclinux-enable-threads.patch renamed from package/gcc/4.9.3/940-uclinux-enable-threads.patch +5 -4
@@ -4,10 +4,11 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71721 Signed-off-by: Waldemar Brodkorb <[email protected]> -diff -Nur gcc-4.9.3.orig/gcc/config.gcc gcc-4.9.3/gcc/config.gcc ---- gcc-4.9.3.orig/gcc/config.gcc 2015-05-21 22:50:59.000000000 +0200 -+++ gcc-4.9.3/gcc/config.gcc 2016-06-30 22:05:21.338233965 +0200 -@@ -807,6 +807,9 @@ +Index: b/gcc/config.gcc +=================================================================== +--- a/gcc/config.gcc ++++ b/gcc/config.gcc +@@ -810,6 +810,9 @@ *-*-uclinux*) extra_options="$extra_options gnu-user.opt" use_gcc_stdint=wrap
package/gcc/Config.in.host +1 -1
@@ -104,7 +104,7 @@ config BR2_GCC_VERSION string default "4.7.4" if BR2_GCC_VERSION_4_7_X default "4.8.5" if BR2_GCC_VERSION_4_8_X - default "4.9.3" if BR2_GCC_VERSION_4_9_X + default "4.9.4" if BR2_GCC_VERSION_4_9_X default "5.4.0" if BR2_GCC_VERSION_5_X default "6.1.0" if BR2_GCC_VERSION_6_X default "arc-2016.09-eng007" if BR2_GCC_VERSION_4_8_ARC
package/gcc/gcc.hash +2 -2
@@ -4,8 +4,8 @@ sha512 78696b287d46aacd6f150920da376ea32f58ad9f0dafd2d3b7fa6dbdd8dd7afe659108d1 sha512 dfcb737073191e628231031a3571ec77ee760a59377630f4a6e4fdfa66f9ddad39fde47e3f0f227eb43cdf90e0d34cde5abdc9ac892c1e111a911062a66c9189 gcc-4.7.4.tar.bz2 # From ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.8.5/sha512.sum sha512 47fdfeca0c0a624cdec9c4ae47137d056c918d5c386d4b96985bb3c8172aba377cb66cbcc30e80832fd244a7d98f562c20198056915c70cfef0977545073a8ea gcc-4.8.5.tar.bz2 -# From ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.9.3/sha512.sum -sha512 9ac57377a6975fc7adac704ec81355262b9f537def6955576753b87715470a20ee6a2a3144a79cc8fcba3443f7b44c7337d79d704b522d053f54f79aa6b442df gcc-4.9.3.tar.bz2 +# 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-6.1.0/sha512.sum
Signature · 1 line
2.7.4
Thomas Petazzoni
AppliedPATCH 1/1 gcc: bump 4.9 series to 4.9.4
Hello,
Quoted 8 lines · Thomas Petazzoni
Two patches are removed, as they have been upstreamed:
- 130-fix_build_with_gcc-6.patch (svn commit 233721, Git commit
8c3fa311caa86f61b4e28d1563d1110b44340fb2)- 920-libgcc-remove-unistd-header.patch (svn commit 226092, Git commit
e940d7953f06af11d09229a29ecbcc1ba25b378d)
Quoted 7 lines
All other patches have simply been refreshed, with no manual edit needed.
A build+runtime test has been done with an ARM, Cortex-A8, EABIhf, musl configuration, booted under Qemu.
Signed-off-by Thomas Petazzoni <[email protected]>
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com