summaryrefslogtreecommitdiff
path: root/packages/gcc/6.4.0
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gcc/6.4.0')
-rw-r--r--packages/gcc/6.4.0/0000-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch (renamed from packages/gcc/6.4.0/0001-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch)65
-rw-r--r--packages/gcc/6.4.0/0001-libtool-leave-framework-alone.patch (renamed from packages/gcc/6.4.0/1000-libtool-leave-framework-alone.patch)8
-rw-r--r--packages/gcc/6.4.0/0002-uclibc-conf.patch (renamed from packages/gcc/6.4.0/100-uclibc-conf.patch)6
-rw-r--r--packages/gcc/6.4.0/0003-missing-execinfo_h.patch (renamed from packages/gcc/6.4.0/301-missing-execinfo_h.patch)6
-rw-r--r--packages/gcc/6.4.0/0004-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch (renamed from packages/gcc/6.4.0/370-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch)33
-rw-r--r--packages/gcc/6.4.0/0005-gcc-plugin-POSIX-include-sys-select-h.patch14
-rw-r--r--packages/gcc/6.4.0/0006-arm-softfloat-libgcc.patch (renamed from packages/gcc/6.4.0/810-arm-softfloat-libgcc.patch)9
-rw-r--r--packages/gcc/6.4.0/0007-arm_unbreak_armv4t.patch (renamed from packages/gcc/6.4.0/830-arm_unbreak_armv4t.patch)6
-rw-r--r--packages/gcc/6.4.0/0008-ARM-PR-target-70473-Reduce-size-of-Cortex-A8-automat.patch (renamed from packages/gcc/6.4.0/831-ARM-PR-target-70473-Reduce-size-of-Cortex-A8-automat.patch)7
-rw-r--r--packages/gcc/6.4.0/0009-cilk-wchar.patch (renamed from packages/gcc/6.4.0/860-cilk-wchar.patch)2
-rw-r--r--packages/gcc/6.4.0/0010-xtensa-fix-PR-target-82181.patch (renamed from packages/gcc/6.4.0/870-xtensa-fix-PR-target-82181.patch)9
-rw-r--r--packages/gcc/6.4.0/0011-fix-m68k-compile.patch (renamed from packages/gcc/6.4.0/890-fix-m68k-compile.patch)9
-rw-r--r--packages/gcc/6.4.0/0012-fix-m68k-uclinux.patch (renamed from packages/gcc/6.4.0/891-fix-m68k-uclinux.patch)11
-rw-r--r--packages/gcc/6.4.0/0013-libgcc-mkmap-symver-support-skip_underscore.patch (renamed from packages/gcc/6.4.0/892-libgcc-mkmap-symver-support-skip_underscore.patch)9
-rw-r--r--packages/gcc/6.4.0/0014-libgcc-config-bfin-use-the-generic-linker-version-in.patch (renamed from packages/gcc/6.4.0/893-libgcc-config-bfin-use-the-generic-linker-version-in.patch)11
-rw-r--r--packages/gcc/6.4.0/0015-libgcc-fix-DWARF-compilation-with-FDPIC-targets.patch (renamed from packages/gcc/6.4.0/894-libgcc-fix-DWARF-compilation-with-FDPIC-targets.patch)13
-rw-r--r--packages/gcc/6.4.0/0016-bfin-define-REENTRANT.patch (renamed from packages/gcc/6.4.0/895-bfin-define-REENTRANT.patch)9
-rw-r--r--packages/gcc/6.4.0/0017-libgfortran-missing-include.patch (renamed from packages/gcc/6.4.0/900-libgfortran-missing-include.patch)8
-rw-r--r--packages/gcc/6.4.0/0018-nios2-bad-multilib-default.patch (renamed from packages/gcc/6.4.0/910-nios2-bad-multilib-default.patch)15
-rw-r--r--packages/gcc/6.4.0/0019-libgcc-disable-split-stack-nothreads.patch (renamed from packages/gcc/6.4.0/930-libgcc-disable-split-stack-nothreads.patch)9
-rw-r--r--packages/gcc/6.4.0/0020-uclinux-enable-threads.patch (renamed from packages/gcc/6.4.0/940-uclinux-enable-threads.patch)11
-rw-r--r--packages/gcc/6.4.0/0021-bionic-ndk.patch (renamed from packages/gcc/6.4.0/951-bionic-ndk.patch)8
-rw-r--r--packages/gcc/6.4.0/0022-bionic-errno.patch (renamed from packages/gcc/6.4.0/952-bionic-errno.patch)8
-rw-r--r--packages/gcc/6.4.0/0023-crystax.patch (renamed from packages/gcc/6.4.0/970-crystax.patch)108
-rw-r--r--packages/gcc/6.4.0/0024-crystax.patch (renamed from packages/gcc/6.4.0/971-crystax.patch)6
-rw-r--r--packages/gcc/6.4.0/0025-crystax.patch (renamed from packages/gcc/6.4.0/972-crystax.patch)67
-rw-r--r--packages/gcc/6.4.0/0026-crystax.patch (renamed from packages/gcc/6.4.0/973-crystax.patch)8
-rw-r--r--packages/gcc/6.4.0/0027-crystax.patch (renamed from packages/gcc/6.4.0/974-crystax.patch)8
-rw-r--r--packages/gcc/6.4.0/0028-crystax.patch (renamed from packages/gcc/6.4.0/975-crystax.patch)8
-rw-r--r--packages/gcc/6.4.0/0029-crystax.patch (renamed from packages/gcc/6.4.0/976-crystax.patch)6
-rw-r--r--packages/gcc/6.4.0/0030-crystax.patch (renamed from packages/gcc/6.4.0/977-crystax.patch)13
-rw-r--r--packages/gcc/6.4.0/380-gcc-plugin-POSIX-include-sys-select-h.patch11
32 files changed, 246 insertions, 275 deletions
diff --git a/packages/gcc/6.4.0/0001-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch b/packages/gcc/6.4.0/0000-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch
index 17a77d0..9de88c1 100644
--- a/packages/gcc/6.4.0/0001-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch
+++ b/packages/gcc/6.4.0/0000-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch
@@ -32,23 +32,21 @@ build-many-glibcs.py.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@249957 138bc75d-0d04-0410-961f-82ee72b054a4
---
- libgcc/config/aarch64/linux-unwind.h | 2 +-
- libgcc/config/alpha/linux-unwind.h | 2 +-
- libgcc/config/bfin/linux-unwind.h | 2 +-
- libgcc/config/i386/linux-unwind.h | 4 ++--
- libgcc/config/m68k/linux-unwind.h | 2 +-
- libgcc/config/nios2/linux-unwind.h | 2 +-
- libgcc/config/pa/linux-unwind.h | 2 +-
- libgcc/config/sh/linux-unwind.h | 2 +-
- libgcc/config/tilepro/linux-unwind.h | 2 +-
- libgcc/config/xtensa/linux-unwind.h | 2 +-
+ libgcc/config/aarch64/linux-unwind.h | 2 +-
+ libgcc/config/alpha/linux-unwind.h | 2 +-
+ libgcc/config/bfin/linux-unwind.h | 2 +-
+ libgcc/config/i386/linux-unwind.h | 4 ++--
+ libgcc/config/m68k/linux-unwind.h | 2 +-
+ libgcc/config/nios2/linux-unwind.h | 2 +-
+ libgcc/config/pa/linux-unwind.h | 2 +-
+ libgcc/config/sh/linux-unwind.h | 2 +-
+ libgcc/config/tilepro/linux-unwind.h | 2 +-
+ libgcc/config/xtensa/linux-unwind.h | 2 +-
10 files changed, 11 insertions(+), 11 deletions(-)
-diff --git a/libgcc/config/aarch64/linux-unwind.h b/libgcc/config/aarch64/linux-unwind.h
-index 4512efbdcc8..06de45aa7ab 100644
--- a/libgcc/config/aarch64/linux-unwind.h
+++ b/libgcc/config/aarch64/linux-unwind.h
-@@ -52,7 +52,7 @@ aarch64_fallback_frame_state (struct _Unwind_Context *context,
+@@ -52,7 +52,7 @@
struct rt_sigframe
{
siginfo_t info;
@@ -57,11 +55,9 @@ index 4512efbdcc8..06de45aa7ab 100644
};
struct rt_sigframe *rt_;
-diff --git a/libgcc/config/alpha/linux-unwind.h b/libgcc/config/alpha/linux-unwind.h
-index bdbba4a3c5d..e84812e33fd 100644
--- a/libgcc/config/alpha/linux-unwind.h
+++ b/libgcc/config/alpha/linux-unwind.h
-@@ -51,7 +51,7 @@ alpha_fallback_frame_state (struct _Unwind_Context *context,
+@@ -51,7 +51,7 @@
{
struct rt_sigframe {
siginfo_t info;
@@ -70,11 +66,9 @@ index bdbba4a3c5d..e84812e33fd 100644
} *rt_ = context->cfa;
sc = &rt_->uc.uc_mcontext;
}
-diff --git a/libgcc/config/bfin/linux-unwind.h b/libgcc/config/bfin/linux-unwind.h
-index 77b7c23c708..8bf5e82c55e 100644
--- a/libgcc/config/bfin/linux-unwind.h
+++ b/libgcc/config/bfin/linux-unwind.h
-@@ -52,7 +52,7 @@ bfin_fallback_frame_state (struct _Unwind_Context *context,
+@@ -52,7 +52,7 @@
void *puc;
char retcode[8];
siginfo_t info;
@@ -83,11 +77,9 @@ index 77b7c23c708..8bf5e82c55e 100644
} *rt_ = context->cfa;
/* The void * cast is necessary to avoid an aliasing warning.
-diff --git a/libgcc/config/i386/linux-unwind.h b/libgcc/config/i386/linux-unwind.h
-index 540a0a25aca..29efbe31d61 100644
--- a/libgcc/config/i386/linux-unwind.h
+++ b/libgcc/config/i386/linux-unwind.h
-@@ -58,7 +58,7 @@ x86_64_fallback_frame_state (struct _Unwind_Context *context,
+@@ -58,7 +58,7 @@
if (*(unsigned char *)(pc+0) == 0x48
&& *(unsigned long long *)(pc+1) == RT_SIGRETURN_SYSCALL)
{
@@ -96,7 +88,7 @@ index 540a0a25aca..29efbe31d61 100644
/* The void * cast is necessary to avoid an aliasing warning.
The aliasing warning is correct, but should not be a problem
because it does not alias anything. */
-@@ -138,7 +138,7 @@ x86_fallback_frame_state (struct _Unwind_Context *context,
+@@ -138,7 +138,7 @@
siginfo_t *pinfo;
void *puc;
siginfo_t info;
@@ -105,11 +97,9 @@ index 540a0a25aca..29efbe31d61 100644
} *rt_ = context->cfa;
/* The void * cast is necessary to avoid an aliasing warning.
The aliasing warning is correct, but should not be a problem
-diff --git a/libgcc/config/m68k/linux-unwind.h b/libgcc/config/m68k/linux-unwind.h
-index 75b7cf723a0..f964e24c4ee 100644
--- a/libgcc/config/m68k/linux-unwind.h
+++ b/libgcc/config/m68k/linux-unwind.h
-@@ -33,7 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+@@ -33,7 +33,7 @@
/* <sys/ucontext.h> is unfortunately broken right now. */
struct uw_ucontext {
unsigned long uc_flags;
@@ -118,11 +108,9 @@ index 75b7cf723a0..f964e24c4ee 100644
stack_t uc_stack;
mcontext_t uc_mcontext;
unsigned long uc_filler[80];
-diff --git a/libgcc/config/nios2/linux-unwind.h b/libgcc/config/nios2/linux-unwind.h
-index 23041420525..30f25ea379e 100644
--- a/libgcc/config/nios2/linux-unwind.h
+++ b/libgcc/config/nios2/linux-unwind.h
-@@ -38,7 +38,7 @@ struct nios2_mcontext {
+@@ -38,7 +38,7 @@
struct nios2_ucontext {
unsigned long uc_flags;
@@ -131,11 +119,9 @@ index 23041420525..30f25ea379e 100644
stack_t uc_stack;
struct nios2_mcontext uc_mcontext;
sigset_t uc_sigmask; /* mask last for extensibility */
-diff --git a/libgcc/config/pa/linux-unwind.h b/libgcc/config/pa/linux-unwind.h
-index 9a2657f295d..e47493dde91 100644
--- a/libgcc/config/pa/linux-unwind.h
+++ b/libgcc/config/pa/linux-unwind.h
-@@ -80,7 +80,7 @@ pa32_fallback_frame_state (struct _Unwind_Context *context,
+@@ -80,7 +80,7 @@
struct sigcontext *sc;
struct rt_sigframe {
siginfo_t info;
@@ -144,11 +130,9 @@ index 9a2657f295d..e47493dde91 100644
} *frame;
/* rt_sigreturn trampoline:
-diff --git a/libgcc/config/sh/linux-unwind.h b/libgcc/config/sh/linux-unwind.h
-index e389cacaab8..0bf43ba21c2 100644
--- a/libgcc/config/sh/linux-unwind.h
+++ b/libgcc/config/sh/linux-unwind.h
-@@ -180,7 +180,7 @@ sh_fallback_frame_state (struct _Unwind_Context *context,
+@@ -180,7 +180,7 @@
{
struct rt_sigframe {
siginfo_t info;
@@ -157,11 +141,9 @@ index e389cacaab8..0bf43ba21c2 100644
} *rt_ = context->cfa;
/* The void * cast is necessary to avoid an aliasing warning.
The aliasing warning is correct, but should not be a problem
-diff --git a/libgcc/config/tilepro/linux-unwind.h b/libgcc/config/tilepro/linux-unwind.h
-index 796e97620b8..75f8890ce07 100644
--- a/libgcc/config/tilepro/linux-unwind.h
+++ b/libgcc/config/tilepro/linux-unwind.h
-@@ -61,7 +61,7 @@ tile_fallback_frame_state (struct _Unwind_Context *context,
+@@ -61,7 +61,7 @@
struct rt_sigframe {
unsigned char save_area[C_ABI_SAVE_AREA_SIZE];
siginfo_t info;
@@ -170,11 +152,9 @@ index 796e97620b8..75f8890ce07 100644
} *rt_;
/* Return if this is not a signal handler. */
-diff --git a/libgcc/config/xtensa/linux-unwind.h b/libgcc/config/xtensa/linux-unwind.h
-index 9872492acc2..586a9d49e9c 100644
--- a/libgcc/config/xtensa/linux-unwind.h
+++ b/libgcc/config/xtensa/linux-unwind.h
-@@ -67,7 +67,7 @@ xtensa_fallback_frame_state (struct _Unwind_Context *context,
+@@ -67,7 +67,7 @@
struct rt_sigframe {
siginfo_t info;
@@ -183,6 +163,3 @@ index 9872492acc2..586a9d49e9c 100644
} *rt_;
/* movi a2, __NR_rt_sigreturn; syscall */
---
-2.14.1
-
diff --git a/packages/gcc/6.4.0/1000-libtool-leave-framework-alone.patch b/packages/gcc/6.4.0/0001-libtool-leave-framework-alone.patch
index bce09eb..1a86e41 100644
--- a/packages/gcc/6.4.0/1000-libtool-leave-framework-alone.patch
+++ b/packages/gcc/6.4.0/0001-libtool-leave-framework-alone.patch
@@ -1,5 +1,9 @@
---- gcc-6.2.0/libtool-ldflags 2016-12-20 11:13:12.669668125 -0800
-+++ gcc-6.2.0/libtool-ldflags 2016-12-20 11:28:34.894826286 -0800
+---
+ libtool-ldflags | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+--- a/libtool-ldflags
++++ b/libtool-ldflags
@@ -36,6 +36,11 @@
for arg
do
diff --git a/packages/gcc/6.4.0/100-uclibc-conf.patch b/packages/gcc/6.4.0/0002-uclibc-conf.patch
index 73d1f0d..aef750a 100644
--- a/packages/gcc/6.4.0/100-uclibc-conf.patch
+++ b/packages/gcc/6.4.0/0002-uclibc-conf.patch
@@ -1,5 +1,7 @@
-Index: b/contrib/regression/objs-gcc.sh
-===================================================================
+---
+ contrib/regression/objs-gcc.sh | 4 ++++
+ 1 file changed, 4 insertions(+)
+
--- a/contrib/regression/objs-gcc.sh
+++ b/contrib/regression/objs-gcc.sh
@@ -106,6 +106,10 @@
diff --git a/packages/gcc/6.4.0/301-missing-execinfo_h.patch b/packages/gcc/6.4.0/0003-missing-execinfo_h.patch
index 2d0e7ba..c90222a 100644
--- a/packages/gcc/6.4.0/301-missing-execinfo_h.patch
+++ b/packages/gcc/6.4.0/0003-missing-execinfo_h.patch
@@ -1,5 +1,7 @@
-Index: b/boehm-gc/include/gc.h
-===================================================================
+---
+ boehm-gc/include/gc.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
--- a/boehm-gc/include/gc.h
+++ b/boehm-gc/include/gc.h
@@ -503,7 +503,7 @@
diff --git a/packages/gcc/6.4.0/370-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch b/packages/gcc/6.4.0/0004-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch
index d8986d5..e81522d 100644
--- a/packages/gcc/6.4.0/370-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch
+++ b/packages/gcc/6.4.0/0004-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch
@@ -1,6 +1,11 @@
-diff -urN gcc-5.3.0.orig/config/gcc-plugin.m4 gcc-5.3.0/config/gcc-plugin.m4
---- gcc-5.3.0.orig/config/gcc-plugin.m4 2015-12-19 14:39:04.120734900 +0000
-+++ gcc-5.3.0/config/gcc-plugin.m4 2015-12-20 01:28:45.381965300 +0000
+---
+ config/gcc-plugin.m4 | 18 +++++++++++++-----
+ gcc/configure | 22 +++++++++++++++-------
+ libcc1/configure | 22 +++++++++++++++-------
+ 3 files changed, 43 insertions(+), 19 deletions(-)
+
+--- a/config/gcc-plugin.m4
++++ b/config/gcc-plugin.m4
@@ -20,6 +20,9 @@
pluginlibs=
@@ -46,10 +51,9 @@ diff -urN gcc-5.3.0.orig/config/gcc-plugin.m4 gcc-5.3.0/config/gcc-plugin.m4
[AC_MSG_RESULT([yes]); have_pic_shared=yes],
[AC_MSG_RESULT([no]); have_pic_shared=no])
if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
-diff -urN gcc-5.3.0.orig/gcc/configure gcc-5.3.0/gcc/configure
---- gcc-5.3.0.orig/gcc/configure 2015-12-19 14:40:16.893975900 +0000
-+++ gcc-5.3.0/gcc/configure 2015-12-20 01:28:45.472476700 +0000
-@@ -28386,6 +28386,9 @@
+--- a/gcc/configure
++++ b/gcc/configure
+@@ -29199,6 +29199,9 @@
pluginlibs=
@@ -59,7 +63,7 @@ diff -urN gcc-5.3.0.orig/gcc/configure gcc-5.3.0/gcc/configure
case "${host}" in
*-*-darwin*)
if test x$build = x$host; then
-@@ -28396,6 +28399,11 @@
+@@ -29209,6 +29212,11 @@
export_sym_check=
fi
;;
@@ -71,7 +75,7 @@ diff -urN gcc-5.3.0.orig/gcc/configure gcc-5.3.0/gcc/configure
*)
if test x$build = x$host; then
export_sym_check="objdump${exeext} -T"
-@@ -28508,23 +28516,23 @@
+@@ -29321,23 +29329,23 @@
case "${host}" in
*-*-darwin*)
CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
@@ -102,10 +106,9 @@ diff -urN gcc-5.3.0.orig/gcc/configure gcc-5.3.0/gcc/configure
;
return 0;
}
-diff -urN gcc-5.3.0.orig/libcc1/configure gcc-5.3.0/libcc1/configure
---- gcc-5.3.0.orig/libcc1/configure 2015-12-19 14:40:20.855979000 +0000
-+++ gcc-5.3.0/libcc1/configure 2015-12-20 01:28:45.504980900 +0000
-@@ -14500,6 +14500,9 @@
+--- a/libcc1/configure
++++ b/libcc1/configure
+@@ -14531,6 +14531,9 @@
pluginlibs=
@@ -115,7 +118,7 @@ diff -urN gcc-5.3.0.orig/libcc1/configure gcc-5.3.0/libcc1/configure
case "${host}" in
*-*-darwin*)
if test x$build = x$host; then
-@@ -14510,6 +14513,11 @@
+@@ -14541,6 +14544,11 @@
export_sym_check=
fi
;;
@@ -127,7 +130,7 @@ diff -urN gcc-5.3.0.orig/libcc1/configure gcc-5.3.0/libcc1/configure
*)
if test x$build = x$host; then
export_sym_check="objdump${exeext} -T"
-@@ -14622,23 +14630,23 @@
+@@ -14653,23 +14661,23 @@
case "${host}" in
*-*-darwin*)
CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
diff --git a/packages/gcc/6.4.0/0005-gcc-plugin-POSIX-include-sys-select-h.patch b/packages/gcc/6.4.0/0005-gcc-plugin-POSIX-include-sys-select-h.patch
new file mode 100644
index 0000000..5f9a07a
--- /dev/null
+++ b/packages/gcc/6.4.0/0005-gcc-plugin-POSIX-include-sys-select-h.patch
@@ -0,0 +1,14 @@
+---
+ libcc1/connection.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/libcc1/connection.cc
++++ b/libcc1/connection.cc
+@@ -21,6 +21,7 @@
+ #include <string>
+ #include <unistd.h>
+ #include <sys/types.h>
++#include <sys/select.h>
+ #include <string.h>
+ #include <errno.h>
+ #include "marshall.hh"
diff --git a/packages/gcc/6.4.0/810-arm-softfloat-libgcc.patch b/packages/gcc/6.4.0/0006-arm-softfloat-libgcc.patch
index 5efa7fd..350857d 100644
--- a/packages/gcc/6.4.0/810-arm-softfloat-libgcc.patch
+++ b/packages/gcc/6.4.0/0006-arm-softfloat-libgcc.patch
@@ -1,5 +1,8 @@
-Index: b/gcc/config/arm/linux-elf.h
-===================================================================
+---
+ gcc/config/arm/linux-elf.h | 2 +-
+ libgcc/config/arm/t-linux | 7 ++++++-
+ 2 files changed, 7 insertions(+), 2 deletions(-)
+
--- a/gcc/config/arm/linux-elf.h
+++ b/gcc/config/arm/linux-elf.h
@@ -60,7 +60,7 @@
@@ -11,8 +14,6 @@ Index: b/gcc/config/arm/linux-elf.h
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
-Index: b/libgcc/config/arm/t-linux
-===================================================================
--- a/libgcc/config/arm/t-linux
+++ b/libgcc/config/arm/t-linux
@@ -1,6 +1,11 @@
diff --git a/packages/gcc/6.4.0/830-arm_unbreak_armv4t.patch b/packages/gcc/6.4.0/0007-arm_unbreak_armv4t.patch
index b730059..7c37445 100644
--- a/packages/gcc/6.4.0/830-arm_unbreak_armv4t.patch
+++ b/packages/gcc/6.4.0/0007-arm_unbreak_armv4t.patch
@@ -1,7 +1,9 @@
http://sourceware.org/ml/crossgcc/2008-05/msg00009.html
-Index: b/gcc/config/arm/linux-eabi.h
-===================================================================
+---
+ gcc/config/arm/linux-eabi.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
--- a/gcc/config/arm/linux-eabi.h
+++ b/gcc/config/arm/linux-eabi.h
@@ -45,7 +45,7 @@
diff --git a/packages/gcc/6.4.0/831-ARM-PR-target-70473-Reduce-size-of-Cortex-A8-automat.patch b/packages/gcc/6.4.0/0008-ARM-PR-target-70473-Reduce-size-of-Cortex-A8-automat.patch
index af9fb1d..24371e6 100644
--- a/packages/gcc/6.4.0/831-ARM-PR-target-70473-Reduce-size-of-Cortex-A8-automat.patch
+++ b/packages/gcc/6.4.0/0008-ARM-PR-target-70473-Reduce-size-of-Cortex-A8-automat.patch
@@ -17,11 +17,9 @@ git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239772
[Backport from gcc upstream commit 79f5d5e3cd5a668d5ecb2b6b0cce80ef5706ac53.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
- gcc/config/arm/cortex-a8-neon.md | 14 +++++++++-----
+ gcc/config/arm/cortex-a8-neon.md | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
-diff --git a/gcc/config/arm/cortex-a8-neon.md b/gcc/config/arm/cortex-a8-neon.md
-index 45f861f..b16c299 100644
--- a/gcc/config/arm/cortex-a8-neon.md
+++ b/gcc/config/arm/cortex-a8-neon.md
@@ -357,30 +357,34 @@
@@ -64,6 +62,3 @@ index 45f861f..b16c299 100644
;; Comparisons can actually take 7 cycles sometimes instead of four,
;; but given all the other instructions lumped into type=ffarith that
---
-2.7.4
-
diff --git a/packages/gcc/6.4.0/860-cilk-wchar.patch b/packages/gcc/6.4.0/0009-cilk-wchar.patch
index 1d9916f..300837f 100644
--- a/packages/gcc/6.4.0/860-cilk-wchar.patch
+++ b/packages/gcc/6.4.0/0009-cilk-wchar.patch
@@ -10,8 +10,6 @@ Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
libcilkrts/include/cilk/reducer_min_max.h | 8 ++++++++
1 file changed, 8 insertions(+)
-Index: b/libcilkrts/include/cilk/reducer_min_max.h
-===================================================================
--- a/libcilkrts/include/cilk/reducer_min_max.h
+++ b/libcilkrts/include/cilk/reducer_min_max.h
@@ -3154,7 +3154,9 @@
diff --git a/packages/gcc/6.4.0/870-xtensa-fix-PR-target-82181.patch b/packages/gcc/6.4.0/0010-xtensa-fix-PR-target-82181.patch
index 5fe3841..1258023 100644
--- a/packages/gcc/6.4.0/870-xtensa-fix-PR-target-82181.patch
+++ b/packages/gcc/6.4.0/0010-xtensa-fix-PR-target-82181.patch
@@ -11,14 +11,12 @@ gcc/
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
- gcc/config/xtensa/xtensa.c | 1 +
+ 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 2bdf5ccef979..92fdeb08046d 100644
--- a/gcc/config/xtensa/xtensa.c
+++ b/gcc/config/xtensa/xtensa.c
-@@ -601,6 +601,7 @@ xtensa_mem_offset (unsigned v, machine_mode mode)
+@@ -601,6 +601,7 @@
case HImode:
return xtensa_uimm8x2 (v);
@@ -26,6 +24,3 @@ index 2bdf5ccef979..92fdeb08046d 100644
case DFmode:
return (xtensa_uimm8x4 (v) && xtensa_uimm8x4 (v + 4));
---
-2.1.4
-
diff --git a/packages/gcc/6.4.0/890-fix-m68k-compile.patch b/packages/gcc/6.4.0/0011-fix-m68k-compile.patch
index 6e63de0..9437f25 100644
--- a/packages/gcc/6.4.0/890-fix-m68k-compile.patch
+++ b/packages/gcc/6.4.0/0011-fix-m68k-compile.patch
@@ -2,9 +2,12 @@ remove unused header, which breaks the toolchain building
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
-diff -Nur gcc-5.3.0.orig/libgcc/config/m68k/linux-atomic.c gcc-5.3.0/libgcc/config/m68k/linux-atomic.c
---- gcc-5.3.0.orig/libgcc/config/m68k/linux-atomic.c 2015-01-05 13:33:28.000000000 +0100
-+++ gcc-5.3.0/libgcc/config/m68k/linux-atomic.c 2016-03-19 09:25:07.000000000 +0100
+---
+ libgcc/config/m68k/linux-atomic.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+--- a/libgcc/config/m68k/linux-atomic.c
++++ b/libgcc/config/m68k/linux-atomic.c
@@ -33,7 +33,6 @@
using the kernel helper defined below. There is no support for
64-bit operations yet. */
diff --git a/packages/gcc/6.4.0/891-fix-m68k-uclinux.patch b/packages/gcc/6.4.0/0012-fix-m68k-uclinux.patch
index 4e186bd..20d7c4a 100644
--- a/packages/gcc/6.4.0/891-fix-m68k-uclinux.patch
+++ b/packages/gcc/6.4.0/0012-fix-m68k-uclinux.patch
@@ -4,10 +4,13 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53833
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
-diff -Nur gcc-5.3.0.orig/libgcc/config.host gcc-5.3.0/libgcc/config.host
---- gcc-5.3.0.orig/libgcc/config.host 2015-10-01 14:01:18.000000000 +0200
-+++ gcc-5.3.0/libgcc/config.host 2016-04-26 21:30:25.353691745 +0200
-@@ -794,7 +794,7 @@
+---
+ libgcc/config.host | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/libgcc/config.host
++++ b/libgcc/config.host
+@@ -824,7 +824,7 @@
m68k*-*-openbsd*)
;;
m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
diff --git a/packages/gcc/6.4.0/892-libgcc-mkmap-symver-support-skip_underscore.patch b/packages/gcc/6.4.0/0013-libgcc-mkmap-symver-support-skip_underscore.patch
index 73ee6c5..c6421d0 100644
--- a/packages/gcc/6.4.0/892-libgcc-mkmap-symver-support-skip_underscore.patch
+++ b/packages/gcc/6.4.0/0013-libgcc-mkmap-symver-support-skip_underscore.patch
@@ -35,14 +35,12 @@ version information for Blackfin, instead of using a custom one.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
- libgcc/mkmap-symver.awk | 6 +++++-
+ libgcc/mkmap-symver.awk | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
-diff --git a/libgcc/mkmap-symver.awk b/libgcc/mkmap-symver.awk
-index 266832a..30bb179 100644
--- a/libgcc/mkmap-symver.awk
+++ b/libgcc/mkmap-symver.awk
-@@ -47,7 +47,11 @@ state == "nm" && ($1 == "U" || $2 == "U") {
+@@ -47,7 +47,11 @@
state == "nm" && NF == 3 {
split ($3, s, "@")
@@ -55,6 +53,3 @@ index 266832a..30bb179 100644
sawsymbol = 1;
next;
}
---
-2.7.4
-
diff --git a/packages/gcc/6.4.0/893-libgcc-config-bfin-use-the-generic-linker-version-in.patch b/packages/gcc/6.4.0/0014-libgcc-config-bfin-use-the-generic-linker-version-in.patch
index 454295d..ac75cfa 100644
--- a/packages/gcc/6.4.0/893-libgcc-config-bfin-use-the-generic-linker-version-in.patch
+++ b/packages/gcc/6.4.0/0014-libgcc-config-bfin-use-the-generic-linker-version-in.patch
@@ -22,12 +22,10 @@ symbols in libgcc, and therefore all libgcc symbols were marked as
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
- libgcc/config/bfin/libgcc-glibc.ver | 1894 +----------------------------------
- libgcc/config/bfin/t-linux | 3 +-
+ libgcc/config/bfin/libgcc-glibc.ver | 1894 ------------------------------------
+ libgcc/config/bfin/t-linux | 3
2 files changed, 4 insertions(+), 1893 deletions(-)
-diff --git a/libgcc/config/bfin/libgcc-glibc.ver b/libgcc/config/bfin/libgcc-glibc.ver
-index b1bd2df..2af3df7 100644
--- a/libgcc/config/bfin/libgcc-glibc.ver
+++ b/libgcc/config/bfin/libgcc-glibc.ver
@@ -16,1898 +16,8 @@
@@ -1931,14 +1929,9 @@ index b1bd2df..2af3df7 100644
+ __smulsi3_highpart
+ __umulsi3_highpart
}
-diff --git a/libgcc/config/bfin/t-linux b/libgcc/config/bfin/t-linux
-index 1c42e48..8898157 100644
--- a/libgcc/config/bfin/t-linux
+++ b/libgcc/config/bfin/t-linux
@@ -1 +1,2 @@
-SHLIB_MAPFILES = $(srcdir)/config/bfin/libgcc-glibc.ver
+SHLIB_MAPFILES += $(srcdir)/config/bfin/libgcc-glibc.ver
+SHLIB_MKMAP_OPTS = -v skip_underscore=1
---
-2.7.4
-
diff --git a/packages/gcc/6.4.0/894-libgcc-fix-DWARF-compilation-with-FDPIC-targets.patch b/packages/gcc/6.4.0/0015-libgcc-fix-DWARF-compilation-with-FDPIC-targets.patch
index ce49de7..f0ada67 100644
--- a/packages/gcc/6.4.0/894-libgcc-fix-DWARF-compilation-with-FDPIC-targets.patch
+++ b/packages/gcc/6.4.0/0015-libgcc-fix-DWARF-compilation-with-FDPIC-targets.patch
@@ -17,14 +17,12 @@ Fixes PR gcc/68468.
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
- libgcc/unwind-dw2-fde-dip.c | 8 ++++++--
+ libgcc/unwind-dw2-fde-dip.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
-diff --git a/libgcc/unwind-dw2-fde-dip.c b/libgcc/unwind-dw2-fde-dip.c
-index f7a1c3f..801bce8 100644
--- a/libgcc/unwind-dw2-fde-dip.c
+++ b/libgcc/unwind-dw2-fde-dip.c
-@@ -124,7 +124,11 @@ static struct frame_hdr_cache_element
+@@ -124,7 +124,11 @@
{
_Unwind_Ptr pc_low;
_Unwind_Ptr pc_high;
@@ -36,7 +34,7 @@ index f7a1c3f..801bce8 100644
const ElfW(Phdr) *p_eh_frame_hdr;
const ElfW(Phdr) *p_dynamic;
struct frame_hdr_cache_element *link;
-@@ -163,7 +167,7 @@ _Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr)
+@@ -163,7 +167,7 @@
struct unw_eh_callback_data *data = (struct unw_eh_callback_data *) ptr;
const ElfW(Phdr) *phdr, *p_eh_frame_hdr, *p_dynamic;
long n, match;
@@ -45,7 +43,7 @@ index f7a1c3f..801bce8 100644
struct elf32_fdpic_loadaddr load_base;
#else
_Unwind_Ptr load_base;
-@@ -347,7 +351,7 @@ _Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr)
+@@ -347,7 +351,7 @@
break;
}
}
@@ -54,6 +52,3 @@ index f7a1c3f..801bce8 100644
data->dbase = load_base.got_value;
# else
# error What is DW_EH_PE_datarel base on this platform?
---
-2.7.4
-
diff --git a/packages/gcc/6.4.0/895-bfin-define-REENTRANT.patch b/packages/gcc/6.4.0/0016-bfin-define-REENTRANT.patch
index e2828a5..633084b 100644
--- a/packages/gcc/6.4.0/895-bfin-define-REENTRANT.patch
+++ b/packages/gcc/6.4.0/0016-bfin-define-REENTRANT.patch
@@ -2,9 +2,12 @@ enable _REENTRANT when -lpthread is used
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
-diff -Nur gcc-6.2.0.orig/gcc/config/bfin/linux.h gcc-6.2.0/gcc/config/bfin/linux.h
---- gcc-6.2.0.orig/gcc/config/bfin/linux.h 2016-01-04 15:30:50.000000000 +0100
-+++ gcc-6.2.0/gcc/config/bfin/linux.h 2016-09-30 20:48:17.446636819 +0200
+---
+ gcc/config/bfin/linux.h | 3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/gcc/config/bfin/linux.h
++++ b/gcc/config/bfin/linux.h
@@ -38,6 +38,9 @@
"%{static:--start-group} %{mfast-fp:-lbffastfp} %G %L %{static:--end-group} \
%{!static:%{mfast-fp:-lbffastfp} %G}"
diff --git a/packages/gcc/6.4.0/900-libgfortran-missing-include.patch b/packages/gcc/6.4.0/0017-libgfortran-missing-include.patch
index 1f47469..701e7b4 100644
--- a/packages/gcc/6.4.0/900-libgfortran-missing-include.patch
+++ b/packages/gcc/6.4.0/0017-libgfortran-missing-include.patch
@@ -1,5 +1,9 @@
---- gcc-6.3.0/libgfortran/io/close.c.org 2017-01-17 09:43:48.395850000 +0100
-+++ gcc-6.3.0/libgfortran/io/close.c 2017-01-17 09:21:05.000000000 +0100
+---
+ libgfortran/io/close.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/libgfortran/io/close.c
++++ b/libgfortran/io/close.c
@@ -25,6 +25,7 @@
#include "io.h"
#include "unix.h"
diff --git a/packages/gcc/6.4.0/910-nios2-bad-multilib-default.patch b/packages/gcc/6.4.0/0018-nios2-bad-multilib-default.patch
index 61989e5..4acc491 100644
--- a/packages/gcc/6.4.0/910-nios2-bad-multilib-default.patch
+++ b/packages/gcc/6.4.0/0018-nios2-bad-multilib-default.patch
@@ -1,6 +1,10 @@
-diff -ur gcc-6.2.0.orig/gcc/config/nios2/nios2.h gcc-6.2.0/gcc/config/nios2/nios2.h
---- gcc-6.2.0.orig/gcc/config/nios2/nios2.h 2016-11-29 10:27:50.364479625 -0800
-+++ gcc-6.2.0/gcc/config/nios2/nios2.h 2016-11-29 10:29:55.069624746 -0800
+---
+ gcc/config/nios2/nios2.h | 4 ++--
+ gcc/config/nios2/t-nios2 | 3 +--
+ 2 files changed, 3 insertions(+), 4 deletions(-)
+
+--- a/gcc/config/nios2/nios2.h
++++ b/gcc/config/nios2/nios2.h
@@ -63,11 +63,11 @@
#if TARGET_ENDIAN_DEFAULT == 0
# define ASM_SPEC "%{!meb:-EL} %{meb:-EB} %{march=*:-march=%*}"
@@ -15,9 +19,8 @@ diff -ur gcc-6.2.0.orig/gcc/config/nios2/nios2.h gcc-6.2.0/gcc/config/nios2/nios
#endif
#define LINK_SPEC LINK_SPEC_ENDIAN \
-diff -ur gcc-6.2.0.orig/gcc/config/nios2/t-nios2 gcc-6.2.0/gcc/config/nios2/t-nios2
---- gcc-6.2.0.orig/gcc/config/nios2/t-nios2 2016-11-29 10:27:50.364479625 -0800
-+++ gcc-6.2.0/gcc/config/nios2/t-nios2 2016-11-29 10:29:03.517151014 -0800
+--- a/gcc/config/nios2/t-nios2
++++ b/gcc/config/nios2/t-nios2
@@ -22,6 +22,5 @@
# MULTILIB_DIRNAMES = nomul mulx fpu-60-1 fpu-60-2
# MULTILIB_EXCEPTIONS =
diff --git a/packages/gcc/6.4.0/930-libgcc-disable-split-stack-nothreads.patch b/packages/gcc/6.4.0/0019-libgcc-disable-split-stack-nothreads.patch
index 07f9a73..df91a9f 100644
--- a/packages/gcc/6.4.0/930-libgcc-disable-split-stack-nothreads.patch
+++ b/packages/gcc/6.4.0/0019-libgcc-disable-split-stack-nothreads.patch
@@ -2,9 +2,12 @@ disable split-stack for non-thread builds
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
-diff -Nur gcc-5.3.0.orig/libgcc/config/t-stack gcc-5.3.0/libgcc/config/t-stack
---- gcc-5.3.0.orig/libgcc/config/t-stack 2010-10-01 21:31:49.000000000 +0200
-+++ gcc-5.3.0/libgcc/config/t-stack 2016-03-07 03:25:32.000000000 +0100
+---
+ libgcc/config/t-stack | 2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/libgcc/config/t-stack
++++ b/libgcc/config/t-stack
@@ -1,4 +1,6 @@
# Makefile fragment to provide generic support for -fsplit-stack.
# This should be used in config.host for any host which supports
diff --git a/packages/gcc/6.4.0/940-uclinux-enable-threads.patch b/packages/gcc/6.4.0/0020-uclinux-enable-threads.patch
index 490a55b..8e4e0a2 100644
--- a/packages/gcc/6.4.0/940-uclinux-enable-threads.patch
+++ b/packages/gcc/6.4.0/0020-uclinux-enable-threads.patch
@@ -4,10 +4,13 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71721
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
-diff -Nur gcc-5.4.0.orig/gcc/config.gcc gcc-5.4.0/gcc/config.gcc
---- gcc-5.4.0.orig/gcc/config.gcc 2015-09-10 16:17:53.000000000 +0200
-+++ gcc-5.4.0/gcc/config.gcc 2016-07-01 21:26:02.772958441 +0200
-@@ -808,6 +808,9 @@
+---
+ gcc/config.gcc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/gcc/config.gcc
++++ b/gcc/config.gcc
+@@ -838,6 +838,9 @@
*-*-uclinux*)
extra_options="$extra_options gnu-user.opt"
use_gcc_stdint=wrap
diff --git a/packages/gcc/6.4.0/951-bionic-ndk.patch b/packages/gcc/6.4.0/0021-bionic-ndk.patch
index 59c50a8..474dd8c 100644
--- a/packages/gcc/6.4.0/951-bionic-ndk.patch
+++ b/packages/gcc/6.4.0/0021-bionic-ndk.patch
@@ -4,8 +4,10 @@ Date: Tue Apr 25 19:02:18 2017 -0700
Fix ctype for newer NDK headers
-diff --git a/libstdc++-v3/config/os/bionic/ctype_base.h b/libstdc++-v3/config/os/bionic/ctype_base.h
-index 33978f3..c36e63c 100644
+---
+ libstdc++-v3/config/os/bionic/ctype_base.h | 34 +++++++++++++++++++----------
+ 1 file changed, 23 insertions(+), 11 deletions(-)
+
--- a/libstdc++-v3/config/os/bionic/ctype_base.h
+++ b/libstdc++-v3/config/os/bionic/ctype_base.h
@@ -28,6 +28,18 @@
@@ -27,7 +29,7 @@ index 33978f3..c36e63c 100644
namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
-@@ -41,17 +53,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
+@@ -41,17 +53,17 @@
// NB: Offsets into ctype<char>::_M_table force a particular size
// on the mask type. Because of this, we don't use an enum.
typedef char mask;
diff --git a/packages/gcc/6.4.0/952-bionic-errno.patch b/packages/gcc/6.4.0/0022-bionic-errno.patch
index 91f6ca3..0a1a632 100644
--- a/packages/gcc/6.4.0/952-bionic-errno.patch
+++ b/packages/gcc/6.4.0/0022-bionic-errno.patch
@@ -4,11 +4,13 @@ Date: Tue Apr 25 20:17:03 2017 -0700
Fix, errno is volatile int
-diff --git a/libstdc++-v3/src/filesystem/dir.cc b/libstdc++-v3/src/filesystem/dir.cc
-index 6ff12d0..5bbd664 100644
+---
+ libstdc++-v3/src/filesystem/dir.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
--- a/libstdc++-v3/src/filesystem/dir.cc
+++ b/libstdc++-v3/src/filesystem/dir.cc
-@@ -147,7 +147,7 @@ fs::_Dir::advance(error_code* ec, directory_options options)
+@@ -146,7 +146,7 @@
int err = std::exchange(errno, 0);
const auto entp = readdir(dirp);
diff --git a/packages/gcc/6.4.0/970-crystax.patch b/packages/gcc/6.4.0/0023-crystax.patch
index e3109cc..4710900 100644
--- a/packages/gcc/6.4.0/970-crystax.patch
+++ b/packages/gcc/6.4.0/0023-crystax.patch
@@ -7,12 +7,34 @@ Date: Wed Jul 29 11:28:29 2015 +0300
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
[Edited: keep libstdc++, drop libcrystax-related modifications]
-diff --git a/gcc/config.gcc b/gcc/config.gcc
-index f66e48cd1..1c253496b 100644
+---
+ gcc/config.gcc | 17 +++++++-
+ gcc/config/aarch64/aarch64-linux-android.h | 59 +++++++++++++++++++++++++++++
+ gcc/config/aarch64/aarch64-linux.h | 9 +++-
+ gcc/config/arm/arm.h | 3 -
+ gcc/config/arm/arm.md | 2
+ gcc/config/arm/arm.opt | 4 +
+ gcc/config/arm/elf.h | 9 ++--
+ gcc/config/arm/linux-eabi.h | 7 ++-
+ gcc/config/i386/gnu-user.h | 7 ++-
+ gcc/config/i386/gnu-user64.h | 5 ++
+ gcc/config/i386/linux-common.h | 8 +++
+ gcc/config/linux-android.h | 13 +++---
+ gcc/config/mips/android.h | 49 ++++++++++++++++++++++++
+ gcc/config/mips/gnu-user.h | 6 +-
+ gcc/config/mips/linux-common.h | 2
+ gcc/config/mips/t-linux-android | 3 +
+ gcc/config/mips/t-linux-android64 | 4 +
+ libgcc/gthr-posix.h | 13 ++++++
+ libstdc++-v3/configure | 12 +++++
+ libstdc++-v3/include/bits/locale_facets.h | 18 +++++++-
+ libstdc++-v3/libsupc++/guard.cc | 5 ++
+ 21 files changed, 235 insertions(+), 20 deletions(-)
+
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
-@@ -942,13 +942,17 @@ aarch64*-*-elf | aarch64*-*-rtems*)
- TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'`
+@@ -955,13 +955,17 @@
+ tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-freebsd"
;;
aarch64*-*-linux*)
- tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h"
@@ -30,7 +52,7 @@ index f66e48cd1..1c253496b 100644
esac
aarch64_multilibs="${with_multilib_list}"
if test "$aarch64_multilibs" = "default"; then
-@@ -2055,6 +2059,17 @@ mips*-*-linux*) # Linux MIPS, either endian.
+@@ -2072,6 +2076,17 @@
tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h mips/linux-common.h"
extra_options="${extra_options} linux-android.opt"
case ${target} in
@@ -48,9 +70,6 @@ index f66e48cd1..1c253496b 100644
mipsisa32r6*)
default_mips_arch=mips32r6
;;
-diff --git a/gcc/config/aarch64/aarch64-linux-android.h b/gcc/config/aarch64/aarch64-linux-android.h
-new file mode 100644
-index 000000000..db1288fd0
--- /dev/null
+++ b/gcc/config/aarch64/aarch64-linux-android.h
@@ -0,0 +1,59 @@
@@ -113,8 +132,6 @@ index 000000000..db1288fd0
+ LINUX_OR_ANDROID_LD (GNU_USER_TARGET_ENDFILE_SPEC, ANDROID_ENDFILE_SPEC)
+
+#endif /* GCC_AARCH64_LINUX_ANDROID_H */
-diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h
-index 5fcaa59a3..6864195ee 100644
--- a/gcc/config/aarch64/aarch64-linux.h
+++ b/gcc/config/aarch64/aarch64-linux.h
@@ -21,7 +21,14 @@
@@ -133,11 +150,9 @@ index 5fcaa59a3..6864195ee 100644
#undef MUSL_DYNAMIC_LINKER
#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
-diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h
-index ad123dde9..97b059de6 100644
--- a/gcc/config/arm/arm.h
+++ b/gcc/config/arm/arm.h
-@@ -1888,10 +1888,11 @@ enum arm_auto_incmodes
+@@ -1893,10 +1893,11 @@
#define CASE_VECTOR_PC_RELATIVE (TARGET_THUMB2 \
|| (TARGET_THUMB1 \
@@ -150,11 +165,9 @@ index ad123dde9..97b059de6 100644
? (min >= 0 && max < 512 \
? (ADDR_DIFF_VEC_FLAGS (body).offset_unsigned = 1, QImode) \
: min >= -256 && max < 256 \
-diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md
-index 47171b996..eb22d1181 100644
--- a/gcc/config/arm/arm.md
+++ b/gcc/config/arm/arm.md
-@@ -8179,7 +8179,7 @@
+@@ -8180,7 +8180,7 @@
(match_operand:SI 2 "const_int_operand" "") ; total range
(match_operand:SI 3 "" "") ; table label
(match_operand:SI 4 "" "")] ; Out of range label
@@ -163,11 +176,9 @@ index 47171b996..eb22d1181 100644
"
{
enum insn_code code;
-diff --git a/gcc/config/arm/arm.opt b/gcc/config/arm/arm.opt
-index 0ebe01743..772453889 100644
--- a/gcc/config/arm/arm.opt
+++ b/gcc/config/arm/arm.opt
-@@ -193,6 +193,10 @@ mthumb-interwork
+@@ -193,6 +193,10 @@
Target Report Mask(INTERWORK)
Support calls between Thumb and ARM instruction sets.
@@ -178,8 +189,6 @@ index 0ebe01743..772453889 100644
mtls-dialect=
Target RejectNegative Joined Enum(tls_type) Var(target_tls_dialect) Init(TLS_GNU)
Specify thread local storage scheme.
-diff --git a/gcc/config/arm/elf.h b/gcc/config/arm/elf.h
-index 77f30554d..32158ed65 100644
--- a/gcc/config/arm/elf.h
+++ b/gcc/config/arm/elf.h
@@ -56,8 +56,7 @@
@@ -212,8 +221,6 @@ index 77f30554d..32158ed65 100644
#ifndef LINK_SPEC
#define LINK_SPEC "%{mbig-endian:-EB} %{mlittle-endian:-EL} -X"
-diff --git a/gcc/config/arm/linux-eabi.h b/gcc/config/arm/linux-eabi.h
-index ace84816e..8c8fa6553 100644
--- a/gcc/config/arm/linux-eabi.h
+++ b/gcc/config/arm/linux-eabi.h
@@ -108,11 +108,16 @@
@@ -234,11 +241,9 @@ index ace84816e..8c8fa6553 100644
#undef LIB_SPEC
#define LIB_SPEC \
LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \
-diff --git a/gcc/config/i386/gnu-user.h b/gcc/config/i386/gnu-user.h
-index fee33a3ef..22fb2ced9 100644
--- a/gcc/config/i386/gnu-user.h
+++ b/gcc/config/i386/gnu-user.h
-@@ -65,9 +65,14 @@ along with GCC; see the file COPYING3. If not see
+@@ -65,9 +65,14 @@
When the -shared link option is used a final link is not being
done. */
@@ -254,11 +259,9 @@ index fee33a3ef..22fb2ced9 100644
#undef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \
-diff --git a/gcc/config/i386/gnu-user64.h b/gcc/config/i386/gnu-user64.h
-index 7a02a7eb4..cac4179bc 100644
--- a/gcc/config/i386/gnu-user64.h
+++ b/gcc/config/i386/gnu-user64.h
-@@ -46,6 +46,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+@@ -46,6 +46,11 @@
#define SPEC_X32 "mx32"
#endif
@@ -270,11 +273,9 @@ index 7a02a7eb4..cac4179bc 100644
#undef ASM_SPEC
#define ASM_SPEC "%{" SPEC_32 ":--32} \
%{" SPEC_64 ":--64} \
-diff --git a/gcc/config/i386/linux-common.h b/gcc/config/i386/linux-common.h
-index 4b9910fa9..3b11ed086 100644
--- a/gcc/config/i386/linux-common.h
+++ b/gcc/config/i386/linux-common.h
-@@ -30,7 +30,13 @@ along with GCC; see the file COPYING3. If not see
+@@ -30,7 +30,13 @@
#undef CC1_SPEC
#define CC1_SPEC \
LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
@@ -289,11 +290,9 @@ index 4b9910fa9..3b11ed086 100644
#undef LINK_SPEC
#define LINK_SPEC \
-diff --git a/gcc/config/linux-android.h b/gcc/config/linux-android.h
-index 301a41ccd..9623c88d0 100644
--- a/gcc/config/linux-android.h
+++ b/gcc/config/linux-android.h
-@@ -38,15 +39,18 @@
+@@ -38,15 +38,18 @@
"%{" NOANDROID "|tno-android-ld:" LINUX_SPEC ";:" ANDROID_SPEC "}"
#define ANDROID_LINK_SPEC \
@@ -317,9 +316,6 @@ index 301a41ccd..9623c88d0 100644
#define ANDROID_LIB_SPEC \
"%{!static: -ldl}"
-diff --git a/gcc/config/mips/android.h b/gcc/config/mips/android.h
-new file mode 100644
-index 000000000..32c539c8d
--- /dev/null
+++ b/gcc/config/mips/android.h
@@ -0,0 +1,49 @@
@@ -372,11 +368,9 @@ index 000000000..32c539c8d
+ \
+ /* Use the standard linux specs for everything else. */ \
+ LINUX_DRIVER_SELF_SPECS
-diff --git a/gcc/config/mips/gnu-user.h b/gcc/config/mips/gnu-user.h
-index 15b549c08..4a2816014 100644
--- a/gcc/config/mips/gnu-user.h
+++ b/gcc/config/mips/gnu-user.h
-@@ -36,6 +36,7 @@ along with GCC; see the file COPYING3. If not see
+@@ -36,6 +36,7 @@
/* The GNU C++ standard library requires this. */ \
if (c_dialect_cxx ()) \
builtin_define ("_GNU_SOURCE"); \
@@ -384,7 +378,7 @@ index 15b549c08..4a2816014 100644
} while (0)
#undef SUBTARGET_CPP_SPEC
-@@ -71,7 +72,8 @@ along with GCC; see the file COPYING3. If not see
+@@ -71,7 +72,8 @@
#undef SUBTARGET_ASM_SPEC
#define SUBTARGET_ASM_SPEC \
@@ -394,7 +388,7 @@ index 15b549c08..4a2816014 100644
/* The MIPS assembler has different syntax for .set. We set it to
.dummy to trap any errors. */
-@@ -120,7 +122,7 @@ extern const char *host_detect_local_cpu (int argc, const char **argv);
+@@ -120,7 +122,7 @@
#endif
#define LINUX_DRIVER_SELF_SPECS \
@@ -403,11 +397,9 @@ index 15b549c08..4a2816014 100644
MARCH_MTUNE_NATIVE_SPECS, \
/* -mplt has no effect without -mno-shared. Simplify later \
specs handling by removing a redundant option. */ \
-diff --git a/gcc/config/mips/linux-common.h b/gcc/config/mips/linux-common.h
-index 8429a7ca2..8bfacf994 100644
--- a/gcc/config/mips/linux-common.h
+++ b/gcc/config/mips/linux-common.h
-@@ -35,7 +35,7 @@ along with GCC; see the file COPYING3. If not see
+@@ -35,7 +35,7 @@
#undef SUBTARGET_CC1_SPEC
#define SUBTARGET_CC1_SPEC \
LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
@@ -416,18 +408,12 @@ index 8429a7ca2..8bfacf994 100644
#undef CC1PLUS_SPEC
#define CC1PLUS_SPEC \
-diff --git a/gcc/config/mips/t-linux-android b/gcc/config/mips/t-linux-android
-new file mode 100644
-index 000000000..39f512c81
--- /dev/null
+++ b/gcc/config/mips/t-linux-android
@@ -0,0 +1,3 @@
+MULTILIB_OPTIONS = mips32r2/mips32r6
+MULTILIB_DIRNAMES = mips-r2 mips-r6
+MULTILIB_OSDIRNAMES = ../libr2 ../libr6
-diff --git a/gcc/config/mips/t-linux-android64 b/gcc/config/mips/t-linux-android64
-new file mode 100644
-index 000000000..55cab7d62
--- /dev/null
+++ b/gcc/config/mips/t-linux-android64
@@ -0,0 +1,4 @@
@@ -435,11 +421,9 @@ index 000000000..55cab7d62
+MULTILIB_DIRNAMES = 32 mips-r1 mips-r2 mips-r6 mips64-r2 mips64-r6
+MULTILIB_OSDIRNAMES = ../lib ../lib ../libr2 ../libr6 ../lib64r2 ../lib64
+MULTILIB_REQUIRED = mabi=32/mips32 mabi=32/mips32r2 mabi=32/mips32r6 mips64r2 mips64r6
-diff --git a/libgcc/gthr-posix.h b/libgcc/gthr-posix.h
-index 555c0fe24..47c8655f9 100644
--- a/libgcc/gthr-posix.h
+++ b/libgcc/gthr-posix.h
-@@ -32,6 +32,19 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+@@ -32,6 +32,19 @@
#define __GTHREADS 1
#define __GTHREADS_CXX0X 1
@@ -459,11 +443,9 @@ index 555c0fe24..47c8655f9 100644
#include <pthread.h>
#if ((defined(_LIBOBJC) || defined(_LIBOBJC_WEAK)) \
-diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
-index 41797a971..f746e8353 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
-@@ -78319,6 +78341,12 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+@@ -78389,6 +78389,12 @@
/* end confdefs.h. */
#include <sys/syscall.h>
int lk;
@@ -476,7 +458,7 @@ index 41797a971..f746e8353 100755
int
main ()
{
-@@ -78377,6 +78405,12 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+@@ -78447,6 +78453,12 @@
/* end confdefs.h. */
#include <sys/syscall.h>
int lk;
@@ -489,8 +471,6 @@ index 41797a971..f746e8353 100755
int
main ()
{
-diff --git a/libstdc++-v3/include/bits/locale_facets.h b/libstdc++-v3/include/bits/locale_facets.h
-index e3e206b7d..e85dc2c76 100644
--- a/libstdc++-v3/include/bits/locale_facets.h
+++ b/libstdc++-v3/include/bits/locale_facets.h
@@ -47,6 +47,20 @@
@@ -514,7 +494,7 @@ index e3e206b7d..e85dc2c76 100644
namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
-@@ -1102,7 +1116,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
+@@ -1102,7 +1116,7 @@
* @return @a __hi.
*/
virtual const char*
@@ -523,7 +503,7 @@ index e3e206b7d..e85dc2c76 100644
{
__builtin_memcpy(__to, __lo, __hi - __lo);
return __hi;
-@@ -1163,7 +1177,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
+@@ -1163,7 +1177,7 @@
private:
void _M_narrow_init() const;
@@ -532,8 +512,6 @@ index e3e206b7d..e85dc2c76 100644
};
#ifdef _GLIBCXX_USE_WCHAR_T
-diff --git a/libstdc++-v3/libsupc++/guard.cc b/libstdc++-v3/libsupc++/guard.cc
-index 9b617998f..c149169bb 100644
--- a/libstdc++-v3/libsupc++/guard.cc
+++ b/libstdc++-v3/libsupc++/guard.cc
@@ -33,7 +33,12 @@
diff --git a/packages/gcc/6.4.0/971-crystax.patch b/packages/gcc/6.4.0/0024-crystax.patch
index 748a381..f1f9eb1 100644
--- a/packages/gcc/6.4.0/971-crystax.patch
+++ b/packages/gcc/6.4.0/0024-crystax.patch
@@ -6,8 +6,10 @@ Date: Thu Aug 13 16:11:54 2015 +0300
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-diff --git a/gcc/config/arm/t-linux-androideabi b/gcc/config/arm/t-linux-androideabi
-index 8f1307c55..cbbec5bd2 100644
+---
+ gcc/config/arm/t-linux-androideabi | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
--- a/gcc/config/arm/t-linux-androideabi
+++ b/gcc/config/arm/t-linux-androideabi
@@ -1,8 +1,9 @@
diff --git a/packages/gcc/6.4.0/972-crystax.patch b/packages/gcc/6.4.0/0025-crystax.patch
index b9077be..16b182f 100644
--- a/packages/gcc/6.4.0/972-crystax.patch
+++ b/packages/gcc/6.4.0/0025-crystax.patch
@@ -10,11 +10,23 @@ Date: Mon Apr 14 15:59:47 2014 -0700
Change-Id: Ibda473188e5a10f2a0592f2494ad00ad1f91e04b
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-diff --git a/gcc/config.in b/gcc/config.in
-index 115cb6163..933916833 100644
+---
+ gcc/config.in | 6 +++++
+ gcc/config/alpha/elf.h | 4 +++
+ gcc/config/freebsd.h | 4 +++
+ gcc/config/gnu-user.h | 4 +++
+ gcc/config/openbsd.h | 4 +++
+ gcc/config/rs6000/sysv4.h | 6 ++++-
+ gcc/config/sol2.h | 4 +++
+ gcc/configure | 36 +++++++++++++++++++++++++++++++++
+ gcc/configure.ac | 29 ++++++++++++++++++++++++++
+ gcc/testsuite/g++.dg/eh/spec3-static.C | 25 ++++++++++++++++++++++
+ libgcc/crtstuff.c | 11 ++++++----
+ 11 files changed, 128 insertions(+), 5 deletions(-)
+
--- a/gcc/config.in
+++ b/gcc/config.in
-@@ -2119,6 +2119,12 @@
+@@ -2144,6 +2144,12 @@
#endif
@@ -27,11 +39,9 @@ index 115cb6163..933916833 100644
/* Define to 1 if the 'long long' type is wider than 'long' but still
efficiently supported by the host hardware. */
#ifndef USED_FOR_TARGET
-diff --git a/gcc/config/alpha/elf.h b/gcc/config/alpha/elf.h
-index 093c38bba..54b3e0c91 100644
--- a/gcc/config/alpha/elf.h
+++ b/gcc/config/alpha/elf.h
-@@ -168,5 +168,9 @@ extern int alpha_this_gpdisp_sequence_number;
+@@ -168,5 +168,9 @@
I imagine that other systems will catch up. In the meantime, it
doesn't harm to make sure that the data exists to be used later. */
#if defined(HAVE_LD_EH_FRAME_HDR)
@@ -41,11 +51,9 @@ index 093c38bba..54b3e0c91 100644
#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
#endif
+#endif
-diff --git a/gcc/config/freebsd.h b/gcc/config/freebsd.h
-index 5ded869d2..5f51ac81d 100644
--- a/gcc/config/freebsd.h
+++ b/gcc/config/freebsd.h
-@@ -45,8 +45,12 @@ along with GCC; see the file COPYING3. If not see
+@@ -45,8 +45,12 @@
#define LIB_SPEC FBSD_LIB_SPEC
#if defined(HAVE_LD_EH_FRAME_HDR)
@@ -58,11 +66,9 @@ index 5ded869d2..5f51ac81d 100644
#ifdef TARGET_LIBC_PROVIDES_SSP
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
-diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index b0bf40a95..d1874bc29 100644
--- a/gcc/config/gnu-user.h
+++ b/gcc/config/gnu-user.h
-@@ -118,8 +118,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+@@ -118,8 +118,12 @@
#define LIB_SPEC GNU_USER_TARGET_LIB_SPEC
#if defined(HAVE_LD_EH_FRAME_HDR)
@@ -75,11 +81,9 @@ index b0bf40a95..d1874bc29 100644
#undef LINK_GCC_C_SEQUENCE_SPEC
#define LINK_GCC_C_SEQUENCE_SPEC \
-diff --git a/gcc/config/openbsd.h b/gcc/config/openbsd.h
-index 37ecfc43f..a5f1b9955 100644
--- a/gcc/config/openbsd.h
+++ b/gcc/config/openbsd.h
-@@ -136,8 +136,12 @@ while (0)
+@@ -136,8 +136,12 @@
#define LIB_SPEC OBSD_LIB_SPEC
#if defined(HAVE_LD_EH_FRAME_HDR)
@@ -92,11 +96,9 @@ index 37ecfc43f..a5f1b9955 100644
#undef LIB_SPEC
#define LIB_SPEC OBSD_LIB_SPEC
-diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
-index cbf909722..eb2217fad 100644
--- a/gcc/config/rs6000/sysv4.h
+++ b/gcc/config/rs6000/sysv4.h
-@@ -789,7 +789,11 @@ ENDIAN_SELECT(" -mbig", " -mlittle", DEFAULT_ASM_ENDIAN)
+@@ -800,7 +800,11 @@
-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}}"
#if defined(HAVE_LD_EH_FRAME_HDR)
@@ -109,11 +111,9 @@ index cbf909722..eb2217fad 100644
#endif
#define CPP_OS_LINUX_SPEC "-D__unix__ -D__gnu_linux__ -D__linux__ \
-diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
-index 5160e1fda..7632a5081 100644
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
-@@ -347,7 +347,11 @@ along with GCC; see the file COPYING3. If not see
+@@ -347,7 +347,11 @@
/* Solaris 11 build 135+ implements dl_iterate_phdr. GNU ld needs
--eh-frame-hdr to create the required .eh_frame_hdr sections. */
#if defined(HAVE_LD_EH_FRAME_HDR) && defined(TARGET_DL_ITERATE_PHDR)
@@ -125,11 +125,9 @@ index 5160e1fda..7632a5081 100644
#endif /* HAVE_LD_EH_FRAME && TARGET_DL_ITERATE_PHDR */
#endif
-diff --git a/gcc/configure b/gcc/configure
-index 1c6e3407c..28ad05004 100755
--- a/gcc/configure
+++ b/gcc/configure
-@@ -934,6 +934,7 @@ enable_fix_cortex_a53_835769
+@@ -934,6 +934,7 @@
enable_fix_cortex_a53_843419
with_glibc_version
enable_gnu_unique_object
@@ -137,7 +135,7 @@ index 1c6e3407c..28ad05004 100755
enable_linker_build_id
enable_default_ssp
with_long_double_128
-@@ -1670,6 +1671,9 @@ Optional Features:
+@@ -1670,6 +1671,9 @@
--enable-gnu-unique-object
enable the use of the @gnu_unique_object ELF
extension on glibc systems
@@ -147,7 +145,7 @@ index 1c6e3407c..28ad05004 100755
--enable-linker-build-id
compiler will always pass --build-id to linker
--enable-default-ssp enable Stack Smashing Protection as default
-@@ -27703,6 +27707,38 @@ if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
+@@ -27785,6 +27789,38 @@
$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
@@ -186,11 +184,9 @@ index 1c6e3407c..28ad05004 100755
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
-diff --git a/gcc/configure.ac b/gcc/configure.ac
-index 6c1dcd9ae..0cf7419e7 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
-@@ -4828,6 +4828,35 @@ GCC_TARGET_TEMPLATE([HAVE_LD_EH_FRAME_HDR])
+@@ -4861,6 +4861,35 @@
if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
AC_DEFINE(HAVE_LD_EH_FRAME_HDR, 1,
[Define if your linker supports .eh_frame_hdr.])
@@ -226,9 +222,6 @@ index 6c1dcd9ae..0cf7419e7 100644
fi
AC_MSG_RESULT($gcc_cv_ld_eh_frame_hdr)
-diff --git a/gcc/testsuite/g++.dg/eh/spec3-static.C b/gcc/testsuite/g++.dg/eh/spec3-static.C
-new file mode 100644
-index 000000000..15408effa
--- /dev/null
+++ b/gcc/testsuite/g++.dg/eh/spec3-static.C
@@ -0,0 +1,25 @@
@@ -257,11 +250,9 @@ index 000000000..15408effa
+ try { func(); }
+ catch (A& a) { }
+}
-diff --git a/libgcc/crtstuff.c b/libgcc/crtstuff.c
-index f3343fc4f..d42647779 100644
--- a/libgcc/crtstuff.c
+++ b/libgcc/crtstuff.c
-@@ -88,7 +88,8 @@ call_ ## FUNC (void) \
+@@ -88,7 +88,8 @@
#if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) \
@@ -271,7 +262,7 @@ index f3343fc4f..d42647779 100644
&& defined(BSD_DL_ITERATE_PHDR_AVAILABLE)
#include <link.h>
# define USE_PT_GNU_EH_FRAME
-@@ -97,7 +98,8 @@ call_ ## FUNC (void) \
+@@ -97,7 +98,8 @@
#if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) && defined(TARGET_DL_ITERATE_PHDR) \
@@ -281,7 +272,7 @@ index f3343fc4f..d42647779 100644
&& defined(__sun__) && defined(__svr4__)
#include <link.h>
# define USE_PT_GNU_EH_FRAME
-@@ -106,7 +108,8 @@ call_ ## FUNC (void) \
+@@ -106,7 +108,8 @@
#if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) \
@@ -291,7 +282,7 @@ index f3343fc4f..d42647779 100644
&& defined(__GLIBC__) && __GLIBC__ >= 2
#include <link.h>
/* uClibc pretends to be glibc 2.2 and DT_CONFIG is defined in its link.h.
-@@ -121,7 +124,7 @@ call_ ## FUNC (void) \
+@@ -121,7 +124,7 @@
#if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) \
diff --git a/packages/gcc/6.4.0/973-crystax.patch b/packages/gcc/6.4.0/0026-crystax.patch
index b96ece3..8aacba2 100644
--- a/packages/gcc/6.4.0/973-crystax.patch
+++ b/packages/gcc/6.4.0/0026-crystax.patch
@@ -6,11 +6,13 @@ Date: Thu Aug 20 19:11:07 2015 +0300
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
-index 3d044e8bd..5c89fcab0 100644
+---
+ gcc/config/i386/i386.c | 1 +
+ 1 file changed, 1 insertion(+)
+
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
-@@ -14631,6 +14631,7 @@ legitimate_pic_address_disp_p (rtx disp)
+@@ -14683,6 +14683,7 @@
else if (!SYMBOL_REF_FAR_ADDR_P (op0)
&& (SYMBOL_REF_LOCAL_P (op0)
|| (HAVE_LD_PIE_COPYRELOC
diff --git a/packages/gcc/6.4.0/974-crystax.patch b/packages/gcc/6.4.0/0027-crystax.patch
index 9db4f54..8f2eb43 100644
--- a/packages/gcc/6.4.0/974-crystax.patch
+++ b/packages/gcc/6.4.0/0027-crystax.patch
@@ -6,11 +6,13 @@ Date: Fri Aug 21 17:41:59 2015 +0300
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-diff --git a/libgcc/gthr.h b/libgcc/gthr.h
-index 47a7d061a..67a680f90 100644
+---
+ libgcc/gthr.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
--- a/libgcc/gthr.h
+++ b/libgcc/gthr.h
-@@ -145,7 +145,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+@@ -145,7 +145,11 @@
#define GTHREAD_USE_WEAK 1
#endif
#endif
diff --git a/packages/gcc/6.4.0/975-crystax.patch b/packages/gcc/6.4.0/0028-crystax.patch
index 9efc2a4..5e23c3c 100644
--- a/packages/gcc/6.4.0/975-crystax.patch
+++ b/packages/gcc/6.4.0/0028-crystax.patch
@@ -9,11 +9,13 @@ Date: Mon Apr 14 21:05:51 2014 -0700
Change-Id: Ie1de9f946f397196bb6f1623f5add86933739484
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
-index 5974c65d3..71b2c7aa9 100644
+---
+ gcc/config/arm/arm.c | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
-@@ -22403,9 +22403,13 @@ arm_print_operand (FILE *stream, rtx x, int code)
+@@ -22460,9 +22460,13 @@
memsize = MEM_SIZE (x);
/* Only certain alignment specifiers are supported by the hardware. */
diff --git a/packages/gcc/6.4.0/976-crystax.patch b/packages/gcc/6.4.0/0029-crystax.patch
index 790d4a9..8c21a1c 100644
--- a/packages/gcc/6.4.0/976-crystax.patch
+++ b/packages/gcc/6.4.0/0029-crystax.patch
@@ -6,8 +6,10 @@ Date: Sat Aug 22 09:55:55 2015 +0300
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-diff --git a/gcc/config/i386/pmm_malloc.h b/gcc/config/i386/pmm_malloc.h
-index a1f98d3d1..3725799be 100644
+---
+ gcc/config/i386/pmm_malloc.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
--- a/gcc/config/i386/pmm_malloc.h
+++ b/gcc/config/i386/pmm_malloc.h
@@ -31,7 +31,7 @@
diff --git a/packages/gcc/6.4.0/977-crystax.patch b/packages/gcc/6.4.0/0030-crystax.patch
index 0211d72..ccb81fd 100644
--- a/packages/gcc/6.4.0/977-crystax.patch
+++ b/packages/gcc/6.4.0/0030-crystax.patch
@@ -6,11 +6,14 @@ Date: Tue Aug 25 09:36:42 2015 +0300
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-diff --git a/gcc/config/aarch64/aarch64-linux-android.h b/gcc/config/aarch64/aarch64-linux-android.h
-index db1288fd0..38bc64d61 100644
+---
+ gcc/config/aarch64/aarch64-linux-android.h | 4 ++++
+ gcc/config/mips/linux-common.h | 4 ++++
+ 2 files changed, 8 insertions(+)
+
--- a/gcc/config/aarch64/aarch64-linux-android.h
+++ b/gcc/config/aarch64/aarch64-linux-android.h
-@@ -57,4 +57,8 @@
+@@ -56,4 +56,8 @@
#define ENDFILE_SPEC \
LINUX_OR_ANDROID_LD (GNU_USER_TARGET_ENDFILE_SPEC, ANDROID_ENDFILE_SPEC)
@@ -19,11 +22,9 @@ index db1288fd0..38bc64d61 100644
+#endif
+
#endif /* GCC_AARCH64_LINUX_ANDROID_H */
-diff --git a/gcc/config/mips/linux-common.h b/gcc/config/mips/linux-common.h
-index 8bfacf994..262a9a341 100644
--- a/gcc/config/mips/linux-common.h
+++ b/gcc/config/mips/linux-common.h
-@@ -63,3 +63,7 @@ along with GCC; see the file COPYING3. If not see
+@@ -62,3 +62,7 @@
/* The default value isn't sufficient in 64-bit mode. */
#define STACK_CHECK_PROTECT (TARGET_64BIT ? 16 * 1024 : 12 * 1024)
diff --git a/packages/gcc/6.4.0/380-gcc-plugin-POSIX-include-sys-select-h.patch b/packages/gcc/6.4.0/380-gcc-plugin-POSIX-include-sys-select-h.patch
deleted file mode 100644
index 12ef48e..0000000
--- a/packages/gcc/6.4.0/380-gcc-plugin-POSIX-include-sys-select-h.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -urN gcc-5.3.0.orig/libcc1/connection.cc gcc-5.3.0/libcc1/connection.cc
---- gcc-5.3.0.orig/libcc1/connection.cc 2015-12-19 14:40:20.860479600 +0000
-+++ gcc-5.3.0/libcc1/connection.cc 2015-12-20 01:31:04.346611500 +0000
-@@ -21,6 +21,7 @@
- #include <string>
- #include <unistd.h>
- #include <sys/types.h>
-+#include <sys/select.h>
- #include <string.h>
- #include <errno.h>
- #include "marshall.hh"