aboutsummaryrefslogtreecommitdiff
path: root/packages/gcc/10.4.0
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gcc/10.4.0')
-rw-r--r--packages/gcc/10.4.0/0000-libtool-leave-framework-alone.patch18
-rw-r--r--packages/gcc/10.4.0/0001-uclibc-conf.patch17
-rw-r--r--packages/gcc/10.4.0/0002-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch163
-rw-r--r--packages/gcc/10.4.0/0003-gcc-plugin-POSIX-include-sys-select-h.patch14
-rw-r--r--packages/gcc/10.4.0/0004-arm-softfloat-libgcc.patch31
-rw-r--r--packages/gcc/10.4.0/0005-fix-m68k-uclinux.patch21
-rw-r--r--packages/gcc/10.4.0/0006-libgfortran-missing-include.patch14
-rw-r--r--packages/gcc/10.4.0/0007-nios2-bad-multilib-default.patch31
-rw-r--r--packages/gcc/10.4.0/0008-libgcc-disable-split-stack-nothreads.patch17
-rw-r--r--packages/gcc/10.4.0/0009-bionic-ndk.patch60
-rw-r--r--packages/gcc/10.4.0/0010-crystax.patch529
-rw-r--r--packages/gcc/10.4.0/0010-fixinc-don-t-fix-machine-names-in-__has_include-.PR.patch123
-rw-r--r--packages/gcc/10.4.0/0011-crystax.patch27
-rw-r--r--packages/gcc/10.4.0/0012-crystax.patch277
-rw-r--r--packages/gcc/10.4.0/0013-crystax.patch22
-rw-r--r--packages/gcc/10.4.0/0014-crystax.patch26
-rw-r--r--packages/gcc/10.4.0/0015-crystax.patch33
-rw-r--r--packages/gcc/10.4.0/0016-crystax.patch23
-rw-r--r--packages/gcc/10.4.0/0017-crystax.patch34
-rw-r--r--packages/gcc/10.4.0/0018-isl-0.20.patch26
-rw-r--r--packages/gcc/10.4.0/0019-AArch64-Fix-build-issue-with-aarch64-builtins.c-on-M.patch29
-rw-r--r--packages/gcc/10.4.0/0020-libstdcxx-pure-stdio.patch267
-rw-r--r--packages/gcc/10.4.0/0021-Darwin-Arm64-Initial-support-for-the-self-host-drive.patch86
-rw-r--r--packages/gcc/10.4.0/0022-Remove-use-of-include_next-from-c-headers.patch262
-rw-r--r--packages/gcc/10.4.0/chksum8
-rw-r--r--packages/gcc/10.4.0/version.desc0
26 files changed, 0 insertions, 2158 deletions
diff --git a/packages/gcc/10.4.0/0000-libtool-leave-framework-alone.patch b/packages/gcc/10.4.0/0000-libtool-leave-framework-alone.patch
deleted file mode 100644
index 1a86e415..00000000
--- a/packages/gcc/10.4.0/0000-libtool-leave-framework-alone.patch
+++ /dev/null
@@ -1,18 +0,0 @@
----
- libtool-ldflags | 5 +++++
- 1 file changed, 5 insertions(+)
-
---- a/libtool-ldflags
-+++ b/libtool-ldflags
-@@ -36,6 +36,11 @@
- for arg
- do
- case $arg in
-+ -framework)
-+ # libtool handles this option. It should not be prefixed with
-+ # -Xcompiler, as that would split it from the argument that
-+ # follows.
-+ ;;
- -f*|--*|-static-lib*|-shared-lib*|-B*)
- # Libtool does not ascribe any special meaning options
- # that begin with -f or with a double-dash. So, it will
diff --git a/packages/gcc/10.4.0/0001-uclibc-conf.patch b/packages/gcc/10.4.0/0001-uclibc-conf.patch
deleted file mode 100644
index aef750af..00000000
--- a/packages/gcc/10.4.0/0001-uclibc-conf.patch
+++ /dev/null
@@ -1,17 +0,0 @@
----
- 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 @@
- then
- make all-gdb all-dejagnu all-ld || exit 1
- make install-gdb install-dejagnu install-ld || exit 1
-+elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
-+ then
-+ make all-gdb all-dejagnu all-ld || exit 1
-+ make install-gdb install-dejagnu install-ld || exit 1
- elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
- make bootstrap || exit 1
- make install || exit 1
diff --git a/packages/gcc/10.4.0/0002-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch b/packages/gcc/10.4.0/0002-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch
deleted file mode 100644
index b797cb86..00000000
--- a/packages/gcc/10.4.0/0002-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch
+++ /dev/null
@@ -1,163 +0,0 @@
----
- 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
-@@ -21,6 +21,9 @@
- pluginlibs=
- plugin_check=yes
-
-+ PICFLAG="-fPIC"
-+ UNDEFINEDPREAMBLE="extern int X;"
-+ UNDEFINEDCODE="return X == 0;"
- case "${host}" in
- *-*-mingw*)
- # Since plugin support under MinGW is not as straightforward as on
-@@ -43,6 +46,11 @@
- export_sym_check=
- fi
- ;;
-+ *-*-mingw*|*-*-cygwin*|*-*-msys*)
-+ PICFLAG=""
-+ UNDEFINEDPREAMBLE=""
-+ UNDEFINEDCODE=""
-+ ;;
- *)
- if test x$build = x$host; then
- export_sym_check="objdump${exeext} -T"
-@@ -94,17 +102,17 @@
- case "${host}" in
- *-*-darwin*)
- CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
-- CFLAGS="$CFLAGS -fPIC"
-+ CFLAGS="$CFLAGS ${PICFLAG}"
- LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
- ;;
- *)
-- CFLAGS="$CFLAGS -fPIC"
-- LDFLAGS="$LDFLAGS -fPIC -shared"
-+ CFLAGS="$CFLAGS ${PICFLAG}"
-+ LDFLAGS="$LDFLAGS ${PICFLAG} -shared"
- ;;
- esac
-- AC_MSG_CHECKING([for -fPIC -shared])
-+ AC_MSG_CHECKING([for ${PICFLAG} -shared])
- AC_TRY_LINK(
-- [extern int X;],[return X == 0;],
-+ [${UNDEFINEDPREAMBLE}],[${UNDEFINEDCODE}],
- [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
---- a/gcc/configure
-+++ b/gcc/configure
-@@ -30610,6 +30610,9 @@
- pluginlibs=
- plugin_check=yes
-
-+ PICFLAG="-fPIC"
-+ UNDEFINEDPREAMBLE="extern int X;"
-+ UNDEFINEDCODE="return X == 0;"
- case "${host}" in
- *-*-mingw*)
- # Since plugin support under MinGW is not as straightforward as on
-@@ -30632,6 +30635,11 @@
- export_sym_check=
- fi
- ;;
-+ *-*-mingw*|*-*-cygwin*|*-*-msys*)
-+ PICFLAG=""
-+ UNDEFINEDPREAMBLE=""
-+ UNDEFINEDCODE=""
-+ ;;
- *)
- if test x$build = x$host; then
- export_sym_check="objdump${exeext} -T"
-@@ -30744,23 +30752,23 @@
- case "${host}" in
- *-*-darwin*)
- CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
-- CFLAGS="$CFLAGS -fPIC"
-+ CFLAGS="$CFLAGS ${PICFLAG}"
- LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
- ;;
- *)
-- CFLAGS="$CFLAGS -fPIC"
-- LDFLAGS="$LDFLAGS -fPIC -shared"
-+ CFLAGS="$CFLAGS ${PICFLAG}"
-+ LDFLAGS="$LDFLAGS ${PICFLAG} -shared"
- ;;
- esac
-- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
--$as_echo_n "checking for -fPIC -shared... " >&6; }
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${PICFLAG} -shared" >&5
-+$as_echo_n "checking for ${PICFLAG} -shared... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
--extern int X;
-+${UNDEFINEDPREAMBLE}
- int
- main ()
- {
--return X == 0;
-+${UNDEFINEDCODE}
- ;
- return 0;
- }
---- a/libcc1/configure
-+++ b/libcc1/configure
-@@ -14812,6 +14812,9 @@
- pluginlibs=
- plugin_check=yes
-
-+ PICFLAG="-fPIC"
-+ UNDEFINEDPREAMBLE="extern int X;"
-+ UNDEFINEDCODE="return X == 0;"
- case "${host}" in
- *-*-mingw*)
- # Since plugin support under MinGW is not as straightforward as on
-@@ -14834,6 +14837,11 @@
- export_sym_check=
- fi
- ;;
-+ *-*-mingw*|*-*-cygwin*|*-*-msys*)
-+ PICFLAG=""
-+ UNDEFINEDPREAMBLE=""
-+ UNDEFINEDCODE=""
-+ ;;
- *)
- if test x$build = x$host; then
- export_sym_check="objdump${exeext} -T"
-@@ -14946,23 +14954,23 @@
- case "${host}" in
- *-*-darwin*)
- CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
-- CFLAGS="$CFLAGS -fPIC"
-+ CFLAGS="$CFLAGS ${PICFLAG}"
- LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
- ;;
- *)
-- CFLAGS="$CFLAGS -fPIC"
-- LDFLAGS="$LDFLAGS -fPIC -shared"
-+ CFLAGS="$CFLAGS ${PICFLAG}"
-+ LDFLAGS="$LDFLAGS ${PICFLAG} -shared"
- ;;
- esac
-- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
--$as_echo_n "checking for -fPIC -shared... " >&6; }
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${PICFLAG} -shared" >&5
-+$as_echo_n "checking for ${PICFLAG} -shared... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
--extern int X;
-+${UNDEFINEDPREAMBLE}
- int
- main ()
- {
--return X == 0;
-+${UNDEFINEDCODE}
- ;
- return 0;
- }
diff --git a/packages/gcc/10.4.0/0003-gcc-plugin-POSIX-include-sys-select-h.patch b/packages/gcc/10.4.0/0003-gcc-plugin-POSIX-include-sys-select-h.patch
deleted file mode 100644
index 5f9a07a2..00000000
--- a/packages/gcc/10.4.0/0003-gcc-plugin-POSIX-include-sys-select-h.patch
+++ /dev/null
@@ -1,14 +0,0 @@
----
- 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/10.4.0/0004-arm-softfloat-libgcc.patch b/packages/gcc/10.4.0/0004-arm-softfloat-libgcc.patch
deleted file mode 100644
index d9800365..00000000
--- a/packages/gcc/10.4.0/0004-arm-softfloat-libgcc.patch
+++ /dev/null
@@ -1,31 +0,0 @@
----
- 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
-@@ -58,7 +58,7 @@
- %{shared:-lc} \
- %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
-
--#define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc"
-+#define LIBGCC_SPEC "-lgcc"
-
- #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
-
---- 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 \
-- _ctzsi2 _arm_addsubdf3 _arm_addsubsf3
-+ _ctzsi2 _arm_addsubdf3 _arm_addsubsf3 \
-+ _arm_addsubdf3 _arm_addsubsf3 \
-+ _arm_negdf2 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \
-+ _arm_fixdfsi _arm_fixunsdfsi _arm_truncdfsf2 \
-+ _arm_negsf2 _arm_muldivsf3 _arm_cmpsf2 _arm_unordsf2 \
-+ _arm_fixsfsi _arm_fixunssfsi
-
- # Just for these, we omit the frame pointer since it makes such a big
- # difference.
diff --git a/packages/gcc/10.4.0/0005-fix-m68k-uclinux.patch b/packages/gcc/10.4.0/0005-fix-m68k-uclinux.patch
deleted file mode 100644
index fed816a1..00000000
--- a/packages/gcc/10.4.0/0005-fix-m68k-uclinux.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-avoids internal compiler error while compiling linux-atomic.c
-See here:
-https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53833
-
-Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
-
----
- libgcc/config.host | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- a/libgcc/config.host
-+++ b/libgcc/config.host
-@@ -959,7 +959,7 @@
- m68k*-*-openbsd*)
- ;;
- m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
-- tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
-+ tmake_file="$tmake_file m68k/t-floatlib"
- md_unwind_header=m68k/linux-unwind.h
- ;;
- m68k-*-linux*) # Motorola m68k's running GNU/Linux
diff --git a/packages/gcc/10.4.0/0006-libgfortran-missing-include.patch b/packages/gcc/10.4.0/0006-libgfortran-missing-include.patch
deleted file mode 100644
index d4917eed..00000000
--- a/packages/gcc/10.4.0/0006-libgfortran-missing-include.patch
+++ /dev/null
@@ -1,14 +0,0 @@
----
- libgfortran/io/close.c | 1 +
- 1 file changed, 1 insertion(+)
-
---- a/libgfortran/io/close.c
-+++ b/libgfortran/io/close.c
-@@ -29,6 +29,7 @@
- #if !HAVE_UNLINK_OPEN_FILE
- #include <string.h>
- #endif
-+#include <stdlib.h>
-
- typedef enum
- { CLOSE_INVALID = - 1, CLOSE_DELETE, CLOSE_KEEP, CLOSE_UNSPECIFIED }
diff --git a/packages/gcc/10.4.0/0007-nios2-bad-multilib-default.patch b/packages/gcc/10.4.0/0007-nios2-bad-multilib-default.patch
deleted file mode 100644
index 4acc4918..00000000
--- a/packages/gcc/10.4.0/0007-nios2-bad-multilib-default.patch
+++ /dev/null
@@ -1,31 +0,0 @@
----
- 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=%*}"
- # define LINK_SPEC_ENDIAN "%{!meb:-EL} %{meb:-EB}"
--# define MULTILIB_DEFAULTS { "EL" }
-+# define MULTILIB_DEFAULTS { "mel" }
- #else
- # define ASM_SPEC "%{!mel:-EB} %{mel:-EL} %{march=*:-march=%*}"
- # define LINK_SPEC_ENDIAN "%{!mel:-EB} %{mel:-EL}"
--# define MULTILIB_DEFAULTS { "EB" }
-+# define MULTILIB_DEFAULTS { "meb" }
- #endif
-
- #define LINK_SPEC LINK_SPEC_ENDIAN \
---- 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 =
-
--# MULTILIB_OPTIONS += EL/EB
-+# MULTILIB_OPTIONS += mel/meb
- # MULTILIB_DIRNAMES += le be
--# MULTILIB_MATCHES += EL=mel EB=meb
diff --git a/packages/gcc/10.4.0/0008-libgcc-disable-split-stack-nothreads.patch b/packages/gcc/10.4.0/0008-libgcc-disable-split-stack-nothreads.patch
deleted file mode 100644
index df91a9ff..00000000
--- a/packages/gcc/10.4.0/0008-libgcc-disable-split-stack-nothreads.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-disable split-stack for non-thread builds
-
-Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
-
----
- 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
- # -fsplit-stack.
-+ifeq ($(enable_threads),yes)
- LIB2ADD_ST += $(srcdir)/generic-morestack.c $(srcdir)/generic-morestack-thread.c
-+endif
diff --git a/packages/gcc/10.4.0/0009-bionic-ndk.patch b/packages/gcc/10.4.0/0009-bionic-ndk.patch
deleted file mode 100644
index 474dd8c0..00000000
--- a/packages/gcc/10.4.0/0009-bionic-ndk.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-commit d38d37bdfe24b7ce1bdcb55642fb6b904718e68f
-Author: Howard Chu <hyc@symas.com>
-Date: Tue Apr 25 19:02:18 2017 -0700
-
- Fix ctype for newer NDK headers
-
----
- 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 @@
-
- // Information as gleaned from /usr/include/ctype.h
-
-+// _CTYPE prefix was added in NDK r14 unified headers
-+#ifndef _CTYPE_U
-+#define _CTYPE_U _U
-+#define _CTYPE_L _L
-+#define _CTYPE_D _N
-+#define _CTYPE_S _S
-+#define _CTYPE_P _P
-+#define _CTYPE_C _C
-+#define _CTYPE_X _X
-+#define _CTYPE_B _B
-+#endif
-+
- namespace std _GLIBCXX_VISIBILITY(default)
- {
- _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;
-- static const mask upper = _U;
-- static const mask lower = _L;
-- static const mask alpha = _U | _L;
-- static const mask digit = _N;
-- static const mask xdigit = _X | _N;
-- static const mask space = _S;
-- static const mask print = _P | _U | _L | _N | _B;
-- static const mask graph = _P | _U | _L | _N;
-- static const mask cntrl = _C;
-- static const mask punct = _P;
-- static const mask alnum = _U | _L | _N;
-+ static const mask upper = _CTYPE_U;
-+ static const mask lower = _CTYPE_L;
-+ static const mask alpha = _CTYPE_U | _CTYPE_L;
-+ static const mask digit = _CTYPE_D;
-+ static const mask xdigit = _CTYPE_X | _CTYPE_D;
-+ static const mask space = _CTYPE_S;
-+ static const mask print = _CTYPE_P | _CTYPE_U | _CTYPE_L | _CTYPE_D | _CTYPE_B;
-+ static const mask graph = _CTYPE_P | _CTYPE_U | _CTYPE_L | _CTYPE_D;
-+ static const mask cntrl = _CTYPE_C;
-+ static const mask punct = _CTYPE_P;
-+ static const mask alnum = _CTYPE_U | _CTYPE_L | _CTYPE_D;
- #if __cplusplus >= 201103L
- static const mask blank = space;
- #endif
diff --git a/packages/gcc/10.4.0/0010-crystax.patch b/packages/gcc/10.4.0/0010-crystax.patch
deleted file mode 100644
index 4b2a3614..00000000
--- a/packages/gcc/10.4.0/0010-crystax.patch
+++ /dev/null
@@ -1,529 +0,0 @@
-commit 080803512c8f6f87c2f1f711170d54033144d628
-Author: Dmitry Moskalchuk <dm@crystax.net>
-Date: Wed Jul 29 11:28:29 2015 +0300
-
- [android] Apply Android-related modifications
-
- Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-
-[Edited: keep libstdc++, drop libcrystax-related modifications]
----
- 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(-)
- create mode 100644 gcc/config/aarch64/aarch64-linux-android.h
- create mode 100644 gcc/config/mips/android.h
- create mode 100644 gcc/config/mips/t-linux-android
- create mode 100644 gcc/config/mips/t-linux-android64
-
---- a/gcc/config.gcc
-+++ b/gcc/config.gcc
-@@ -1113,14 +1113,18 @@
- extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
- ;;
- aarch64*-*-linux*)
-- tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h"
-+ tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h"
- tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-errata.h aarch64/aarch64-linux.h"
-+ extra_options="${extra_options} linux-android.opt"
- tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-linux"
- tm_defines="${tm_defines} TARGET_DEFAULT_ASYNC_UNWIND_TABLES=1"
- case $target in
- aarch64_be-*)
- tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
- ;;
-+ aarch64*-*-linux-android*)
-+ tm_file="${tm_file} aarch64/aarch64-linux-android.h"
-+ ;;
- esac
- aarch64_multilibs="${with_multilib_list}"
- if test "$aarch64_multilibs" = "default"; then
-@@ -2532,6 +2536,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
-+ mips64*android*)
-+ default_mips_arch=mips64r6
-+ default_mips_abi=64
-+ tm_file="${tm_file} mips/android.h"
-+ tmake_file="${tmake_file} mips/t-linux-android64"
-+ ;;
-+ mips*android*)
-+ default_mips_arch=mips32
-+ tm_file="${tm_file} mips/android.h"
-+ tmake_file="$tmake_file mips/t-linux-android"
-+ ;;
- mipsisa32r6*)
- default_mips_arch=mips32r6
- ;;
---- /dev/null
-+++ b/gcc/config/aarch64/aarch64-linux-android.h
-@@ -0,0 +1,59 @@
-+/* Machine description for AArch64 architecture.
-+ Copyright (C) 2014 Free Software Foundation, Inc.
-+
-+ This file is part of GCC.
-+
-+ GCC is free software; you can redistribute it and/or modify it
-+ under the terms of the GNU General Public License as published by
-+ the Free Software Foundation; either version 3, or (at your option)
-+ any later version.
-+
-+ GCC is distributed in the hope that it will be useful, but
-+ WITHOUT ANY WARRANTY; without even the implied warranty of
-+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-+ General Public License 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/>. */
-+
-+#ifndef GCC_AARCH64_LINUX_ANDROID_H
-+#define GCC_AARCH64_LINUX_ANDROID_H
-+
-+
-+#undef TARGET_OS_CPP_BUILTINS
-+#define TARGET_OS_CPP_BUILTINS() \
-+ do \
-+ { \
-+ GNU_USER_TARGET_OS_CPP_BUILTINS(); \
-+ ANDROID_TARGET_OS_CPP_BUILTINS(); \
-+ } \
-+ while (0)
-+
-+#undef LINK_SPEC
-+#define LINK_SPEC \
-+ LINUX_OR_ANDROID_LD (LINUX_TARGET_LINK_SPEC, \
-+ LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC)
-+
-+#undef CC1_SPEC
-+#define CC1_SPEC \
-+ LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
-+ GNU_USER_TARGET_CC1_SPEC " " ANDROID_CC1_SPEC("-fpic"))
-+
-+#define CC1PLUS_SPEC \
-+ LINUX_OR_ANDROID_CC ("", ANDROID_CC1PLUS_SPEC)
-+
-+#undef LIB_SPEC
-+#define LIB_SPEC \
-+ LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \
-+ GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC " " ANDROID_LIB_SPEC)
-+
-+#undef STARTFILE_SPEC
-+#define STARTFILE_SPEC \
-+ LINUX_OR_ANDROID_LD (GNU_USER_TARGET_STARTFILE_SPEC, ANDROID_STARTFILE_SPEC)
-+
-+#undef ENDFILE_SPEC
-+#define ENDFILE_SPEC \
-+ LINUX_OR_ANDROID_LD (GNU_USER_TARGET_ENDFILE_SPEC, ANDROID_ENDFILE_SPEC)
-+
-+#endif /* GCC_AARCH64_LINUX_ANDROID_H */
---- a/gcc/config/aarch64/aarch64-linux.h
-+++ b/gcc/config/aarch64/aarch64-linux.h
-@@ -21,7 +21,14 @@
- #ifndef GCC_AARCH64_LINUX_H
- #define GCC_AARCH64_LINUX_H
-
--#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
-+#ifndef RUNTIME_ROOT_PREFIX
-+#define RUNTIME_ROOT_PREFIX ""
-+#endif
-+#define GLIBC_DYNAMIC_LINKER RUNTIME_ROOT_PREFIX "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
-+#ifdef BIONIC_DYNAMIC_LINKER
-+#undef BIONIC_DYNAMIC_LINKER
-+#endif
-+#define BIONIC_DYNAMIC_LINKER RUNTIME_ROOT_PREFIX "/system/bin/linker64"
-
- #undef MUSL_DYNAMIC_LINKER
- #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
---- a/gcc/config/arm/arm.h
-+++ b/gcc/config/arm/arm.h
-@@ -1974,12 +1974,13 @@
-
- #define CASE_VECTOR_PC_RELATIVE ((TARGET_THUMB2 \
- || (TARGET_THUMB1 \
-+ && !inline_thumb1_jump_table \
- && (optimize_size || flag_pic))) \
- && (!target_pure_code))
-
-
- #define CASE_VECTOR_SHORTEN_MODE(min, max, body) \
-- (TARGET_THUMB1 \
-+ (TARGET_THUMB1 && !inline_thumb1_jump_table \
- ? (min >= 0 && max < 512 \
- ? (ADDR_DIFF_VEC_FLAGS (body).offset_unsigned = 1, QImode) \
- : min >= -256 && max < 256 \
---- a/gcc/config/arm/arm.md
-+++ b/gcc/config/arm/arm.md
-@@ -9356,7 +9356,7 @@
- (match_operand:SI 2 "const_int_operand") ; total range
- (match_operand:SI 3 "" "") ; table label
- (match_operand:SI 4 "" "")] ; Out of range label
-- "(TARGET_32BIT || optimize_size || flag_pic) && !target_pure_code"
-+ "(TARGET_32BIT || ((optimize_size || flag_pic) && !inline_thumb1_jump_table)) && !target_pure_code"
- "
- {
- enum insn_code code;
---- a/gcc/config/arm/arm.opt
-+++ b/gcc/config/arm/arm.opt
-@@ -208,6 +208,10 @@
- Target Report Mask(INTERWORK)
- Support calls between Thumb and ARM instruction sets.
-
-+minline-thumb1-jumptable
-+Target Report Var(inline_thumb1_jump_table)
-+Inline Thumb1 Jump table code
-+
- mtls-dialect=
- Target RejectNegative Joined Enum(tls_type) Var(target_tls_dialect) Init(TLS_GNU)
- Specify thread local storage scheme.
---- a/gcc/config/arm/elf.h
-+++ b/gcc/config/arm/elf.h
-@@ -56,8 +56,7 @@
- #undef SUBSUBTARGET_EXTRA_SPECS
- #define SUBSUBTARGET_EXTRA_SPECS
-
--#ifndef ASM_SPEC
--#define ASM_SPEC "\
-+#define DEFAULT_ASM_SPEC "\
- %{mbig-endian:-EB} \
- %{mlittle-endian:-EL} \
- %(asm_cpu_spec) \
-@@ -66,6 +65,9 @@
- %{mthumb-interwork:-mthumb-interwork} \
- %{mfloat-abi=*} %{!mfpu=auto: %{mfpu=*}} \
- %(subtarget_extra_asm_spec)"
-+
-+#ifndef ASM_SPEC
-+#define ASM_SPEC DEFAULT_ASM_SPEC
- #endif
-
- /* The ARM uses @ are a comment character so we need to redefine
-@@ -95,7 +97,8 @@
- the code more efficient, but for Thumb-1 it's better to put them out of
- band unless we are generating compressed tables. */
- #define JUMP_TABLES_IN_TEXT_SECTION \
-- ((TARGET_32BIT || (TARGET_THUMB && (optimize_size || flag_pic))) \
-+ ((TARGET_32BIT || (TARGET_THUMB && !inline_thumb1_jump_table \
-+ && (optimize_size || flag_pic))) \
- && !target_pure_code)
-
- #ifndef LINK_SPEC
---- a/gcc/config/arm/linux-eabi.h
-+++ b/gcc/config/arm/linux-eabi.h
-@@ -108,11 +108,16 @@
- LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC " " ASAN_CC1_SPEC " " \
- FDPIC_CC1_SPEC, \
- GNU_USER_TARGET_CC1_SPEC " " ASAN_CC1_SPEC " " \
-- ANDROID_CC1_SPEC)
-+ ANDROID_CC1_SPEC("-fpic"))
-
- #define CC1PLUS_SPEC \
- LINUX_OR_ANDROID_CC ("", ANDROID_CC1PLUS_SPEC)
-
-+#undef ASM_SPEC
-+#define ASM_SPEC \
-+ LINUX_OR_ANDROID_CC (DEFAULT_ASM_SPEC, \
-+ DEFAULT_ASM_SPEC " " ANDROID_ASM_SPEC)
-+
- #undef LIB_SPEC
- #define LIB_SPEC \
- LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \
---- a/gcc/config/i386/gnu-user.h
-+++ b/gcc/config/i386/gnu-user.h
-@@ -65,9 +65,14 @@
- When the -shared link option is used a final link is not being
- done. */
-
-+#undef ANDROID_TARGET_CC1_SPEC
-+#define ANDROID_TARGET_CC1_SPEC \
-+ " -mssse3 -fno-short-enums " \
-+
- #undef ASM_SPEC
- #define ASM_SPEC \
-- "--32 %{msse2avx:%{!mavx:-msse2avx}}"
-+ "--32 %{msse2avx:%{!mavx:-msse2avx}} " \
-+ LINUX_OR_ANDROID_CC ("", ANDROID_ASM_SPEC)
-
- #undef SUBTARGET_EXTRA_SPECS
- #define SUBTARGET_EXTRA_SPECS \
---- a/gcc/config/i386/gnu-user64.h
-+++ b/gcc/config/i386/gnu-user64.h
-@@ -46,6 +46,11 @@
- #define SPEC_X32 "mx32"
- #endif
-
-+#undef ANDROID_TARGET_CC1_SPEC
-+#define ANDROID_TARGET_CC1_SPEC \
-+ "%{m32:-mssse3 -fno-short-enums}" \
-+ "%{!m32:-msse4.2 -mpopcnt}"
-+
- #undef ASM_SPEC
- #define ASM_SPEC "%{" SPEC_32 ":--32} \
- %{" SPEC_64 ":--64} \
---- a/gcc/config/i386/linux-common.h
-+++ b/gcc/config/i386/linux-common.h
-@@ -36,7 +36,13 @@
- #undef CC1_SPEC
- #define CC1_SPEC \
- LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
-- GNU_USER_TARGET_CC1_SPEC " " ANDROID_CC1_SPEC)
-+ GNU_USER_TARGET_CC1_SPEC \
-+ ANDROID_TARGET_CC1_SPEC \
-+ " " \
-+ ANDROID_CC1_SPEC("-fPIC"))
-+
-+#define CC1PLUS_SPEC \
-+ LINUX_OR_ANDROID_CC ("", ANDROID_CC1PLUS_SPEC)
-
- #undef LINK_SPEC
- #define LINK_SPEC \
---- a/gcc/config/linux-android.h
-+++ b/gcc/config/linux-android.h
-@@ -44,15 +44,18 @@
- "%{" NOANDROID "|tno-android-ld:" LINUX_SPEC ";:" ANDROID_SPEC "}"
-
- #define ANDROID_LINK_SPEC \
-- "%{shared: -Bsymbolic}"
-+ "%{shared: -Bsymbolic} -z noexecstack -z relro -z now"
-
--#define ANDROID_CC1_SPEC \
-+#define ANDROID_CC1_SPEC(ANDROID_PIC_DEFAULT) \
- "%{!mglibc:%{!muclibc:%{!mbionic: -mbionic}}} " \
-- "%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: -fPIC}}}}"
-+ "%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: " ANDROID_PIC_DEFAULT "}}}}"
-
- #define ANDROID_CC1PLUS_SPEC \
-- "%{!fexceptions:%{!fno-exceptions: -fno-exceptions}} " \
-- "%{!frtti:%{!fno-rtti: -fno-rtti}}"
-+ "%{!fexceptions:%{!fno-exceptions: -fexceptions}} " \
-+ "%{!frtti:%{!fno-rtti: -frtti}}"
-+
-+#define ANDROID_ASM_SPEC \
-+ "--noexecstack"
-
- #define ANDROID_LIB_SPEC \
- "%{!static: -ldl}"
---- /dev/null
-+++ b/gcc/config/mips/android.h
-@@ -0,0 +1,49 @@
-+/* Target macros for mips*-*android* targets.
-+ Copyright (C) 2014 Free Software Foundation, Inc.
-+
-+This file is part of GCC.
-+
-+GCC is free software; you can redistribute it and/or modify
-+it under the terms of the GNU General Public License as published by
-+the Free Software Foundation; either version 3, or (at your option)
-+any later version.
-+
-+GCC is distributed in the hope that it will be useful,
-+but WITHOUT ANY WARRANTY; without even the implied warranty of
-+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+GNU General Public License 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/>. */
-+
-+#undef DRIVER_SELF_SPECS
-+#define DRIVER_SELF_SPECS \
-+ /* Make sure a -mips option is present. This helps us to pick \
-+ the right multilib, and also makes the later specs easier \
-+ to write. */ \
-+ MIPS_ISA_LEVEL_SPEC, \
-+ \
-+ /* Infer the default float setting from -march. */ \
-+ MIPS_ARCH_FLOAT_SPEC, \
-+ \
-+ /* Infer the -msynci setting from -march if not explicitly set. */ \
-+ MIPS_ISA_SYNCI_SPEC, \
-+ \
-+ /* If no ABI option is specified, infer one from the ISA level \
-+ or -mgp setting. */ \
-+ "%{!mabi=*: %{" MIPS_32BIT_OPTION_SPEC ": -mabi=32;: -mabi=64}}", \
-+ \
-+ /* If no FP ABI option is specified, infer one from the \
-+ ABI/ISA level unless there is a conflicting option. */ \
-+ "%{!msoft-float: %{!msingle-float: %{!mfp*: %{!mmsa: %{mabi=32: %{" \
-+ MIPS_FPXX_OPTION_SPEC ": -mfpxx}}}}}}", \
-+ \
-+ /* If no odd-spreg option is specified, infer one from the ISA. */ \
-+ "%{!modd-spreg: %{mabi=32: %{mips32r6: -mno-odd-spreg}}}", \
-+ \
-+ /* Base SPECs. */ \
-+ BASE_DRIVER_SELF_SPECS, \
-+ \
-+ /* Use the standard linux specs for everything else. */ \
-+ LINUX_DRIVER_SELF_SPECS
---- a/gcc/config/mips/gnu-user.h
-+++ b/gcc/config/mips/gnu-user.h
-@@ -36,6 +36,7 @@
- /* The GNU C++ standard library requires this. */ \
- if (c_dialect_cxx ()) \
- builtin_define ("_GNU_SOURCE"); \
-+ ANDROID_TARGET_OS_CPP_BUILTINS(); \
- } while (0)
-
- #undef SUBTARGET_CPP_SPEC
-@@ -71,7 +72,8 @@
-
- #undef SUBTARGET_ASM_SPEC
- #define SUBTARGET_ASM_SPEC \
-- "%{!mno-abicalls:%{mplt:-call_nonpic;:-KPIC}}"
-+ "%{!mno-abicalls:%{mplt:-call_nonpic;:-KPIC}} " \
-+ LINUX_OR_ANDROID_CC ("", ANDROID_ASM_SPEC)
-
- /* The MIPS assembler has different syntax for .set. We set it to
- .dummy to trap any errors. */
-@@ -120,7 +122,7 @@
- #endif
-
- #define LINUX_DRIVER_SELF_SPECS \
-- NO_SHARED_SPECS \
-+ LINUX_OR_ANDROID_CC(NO_SHARED_SPECS, "") \
- MARCH_MTUNE_NATIVE_SPECS, \
- /* -mplt has no effect without -mno-shared. Simplify later \
- specs handling by removing a redundant option. */ \
---- a/gcc/config/mips/linux-common.h
-+++ b/gcc/config/mips/linux-common.h
-@@ -38,7 +38,7 @@
- #undef SUBTARGET_CC1_SPEC
- #define SUBTARGET_CC1_SPEC \
- LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
-- GNU_USER_TARGET_CC1_SPEC " " ANDROID_CC1_SPEC)
-+ GNU_USER_TARGET_CC1_SPEC " " ANDROID_CC1_SPEC("-fpic"))
-
- #undef CC1PLUS_SPEC
- #define CC1PLUS_SPEC \
---- /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
---- /dev/null
-+++ b/gcc/config/mips/t-linux-android64
-@@ -0,0 +1,4 @@
-+MULTILIB_OPTIONS = mabi=32 mips32/mips32r2/mips32r6/mips64r2/mips64r6
-+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
---- a/libgcc/gthr-posix.h
-+++ b/libgcc/gthr-posix.h
-@@ -32,6 +32,19 @@
- #define __GTHREADS 1
- #define __GTHREADS_CXX0X 1
-
-+/* The following should normally be in a different header file,
-+ * but I couldn't find the right location. The point of the macro
-+ * definition below is to prevent libsupc++ and libstdc++ to reference
-+ * weak symbols in their static C++ constructors. Such code crashes
-+ * when a shared object linked statically to these libraries is
-+ * loaded on Android 2.1 (Eclair) and older platform releases, due
-+ * to a dynamic linker bug.
-+ */
-+#ifdef __ANDROID__
-+#undef GTHREAD_USE_WEAK
-+#define GTHREAD_USE_WEAK 0
-+#endif
-+
- #include <pthread.h>
-
- #if ((defined(_LIBOBJC) || defined(_LIBOBJC_WEAK)) \
---- a/libstdc++-v3/configure
-+++ b/libstdc++-v3/configure
-@@ -73677,6 +73677,18 @@
- #include <sys/syscall.h>
- #include <unistd.h>
- int lk;
-+#if !defined(SYS_gettid)
-+#define SYS_gettid __NR_gettid
-+#endif
-+#if !defined(SYS_futex)
-+#define SYS_futex __NR_futex
-+#endif
-+#if !defined(SYS_gettid)
-+#define SYS_gettid __NR_gettid
-+#endif
-+#if !defined(SYS_futex)
-+#define SYS_futex __NR_futex
-+#endif
- int
- main ()
- {
---- a/libstdc++-v3/include/bits/locale_facets.h
-+++ b/libstdc++-v3/include/bits/locale_facets.h
-@@ -47,6 +47,20 @@
- #include <ext/numeric_traits.h>
- #include <bits/streambuf_iterator.h>
-
-+#if !__clang__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && __i386__
-+// CrystaX: for some reason, x86 gcc-4.9 makes ctype<char>::do_widen() and
-+// ctype<char>::_M_widen_init() methods working wrong if optimization enabled.
-+// For ctype<char>::do_widen(), values of passed arguments (__lo, __hi and __to)
-+// are completely messed up and don't correspond to passed values. In case if
-+// we disable optimization for those methods, things become correct so we apply
-+// this workaround here for a time.
-+// TODO: figure out what exactly wrong here - is it bug in GCC optimization
-+// algorithm or smth else?
-+#define __CRYSTAX_X86_DONT_OPTIMIZE __attribute__((optimize(0)))
-+#else
-+#define __CRYSTAX_X86_DONT_OPTIMIZE
-+#endif
-+
- namespace std _GLIBCXX_VISIBILITY(default)
- {
- _GLIBCXX_BEGIN_NAMESPACE_VERSION
-@@ -1104,7 +1118,7 @@
- * @return @a __hi.
- */
- virtual const char*
-- do_widen(const char* __lo, const char* __hi, char_type* __to) const
-+ do_widen(const char* __lo, const char* __hi, char_type* __to) const __CRYSTAX_X86_DONT_OPTIMIZE
- {
- if (__builtin_expect(__hi != __lo, true))
- __builtin_memcpy(__to, __lo, __hi - __lo);
-@@ -1167,7 +1181,7 @@
-
- private:
- void _M_narrow_init() const;
-- void _M_widen_init() const;
-+ void _M_widen_init() const __CRYSTAX_X86_DONT_OPTIMIZE;
- };
-
- #ifdef _GLIBCXX_USE_WCHAR_T
---- a/libstdc++-v3/libsupc++/guard.cc
-+++ b/libstdc++-v3/libsupc++/guard.cc
-@@ -34,7 +34,12 @@
- #if defined(__GTHREADS) && defined(__GTHREAD_HAS_COND) \
- && (ATOMIC_INT_LOCK_FREE > 1) && defined(_GLIBCXX_HAVE_LINUX_FUTEX)
- # include <climits>
-+#if defined(__ANDROID__)
-+# include <sys/syscall.h>
-+# define SYS_futex __NR_futex
-+#else
- # include <syscall.h>
-+#endif
- # include <unistd.h>
- # define _GLIBCXX_USE_FUTEX
- # define _GLIBCXX_FUTEX_WAIT 0
diff --git a/packages/gcc/10.4.0/0010-fixinc-don-t-fix-machine-names-in-__has_include-.PR.patch b/packages/gcc/10.4.0/0010-fixinc-don-t-fix-machine-names-in-__has_include-.PR.patch
deleted file mode 100644
index 2f8ad877..00000000
--- a/packages/gcc/10.4.0/0010-fixinc-don-t-fix-machine-names-in-__has_include-.PR.patch
+++ /dev/null
@@ -1,123 +0,0 @@
-From a6eedb593ca068d0ad8655dbb97fcd6371cba682 Mon Sep 17 00:00:00 2001
-From: Xi Ruoyao <xry111@mengyan1223.wang>
-Date: Mon, 28 Jun 2021 13:54:58 +0800
-Subject: [PATCH] fixinc: don't "fix" machine names in __has_include(...)
- [PR91085]
-
-fixincludes/
-
- PR other/91085
- * fixfixes.c (check_has_inc): New static function.
- (machine_name_fix): Don't replace header names in
- __has_include(...).
- * inclhack.def (machine_name): Adjust test.
- * tests/base/testing.h: Update.
-
-Upstream: 6bf383c37e6131a8e247e8a0997d55d65c830b6d
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
----
- fixincludes/fixfixes.c | 45 ++++++++++++++++++++++++++++++--
- fixincludes/inclhack.def | 3 ++-
- fixincludes/tests/base/testing.h | 2 +-
- 3 files changed, 46 insertions(+), 4 deletions(-)
-
-diff --git a/fixincludes/fixfixes.c b/fixincludes/fixfixes.c
-index 034e15d9985..3ff87812036 100644
---- a/fixincludes/fixfixes.c
-+++ b/fixincludes/fixfixes.c
-@@ -477,6 +477,39 @@ FIX_PROC_HEAD( char_macro_def_fix )
- fputs (text, stdout);
- }
-
-+/* Check if the pattern at pos is actually in a "__has_include(...)"
-+ directive. Return the pointer to the ')' of this
-+ "__has_include(...)" if it is, NULL otherwise. */
-+static const char *
-+check_has_inc (const char *begin, const char *pos, const char *end)
-+{
-+ static const char has_inc[] = "__has_include";
-+ const size_t has_inc_len = sizeof (has_inc) - 1;
-+ const char *p;
-+
-+ for (p = memmem (begin, pos - begin, has_inc, has_inc_len);
-+ p != NULL;
-+ p = memmem (p, pos - p, has_inc, has_inc_len))
-+ {
-+ p += has_inc_len;
-+ while (p < end && ISSPACE (*p))
-+ p++;
-+
-+ /* "__has_include" may appear as "defined(__has_include)",
-+ search for the next appearance then. */
-+ if (*p != '(')
-+ continue;
-+
-+ /* To avoid too much complexity, just hope there is never a
-+ ')' in a header name. */
-+ p = memchr (p, ')', end - p);
-+ if (p == NULL || p > pos)
-+ return p;
-+ }
-+
-+ return NULL;
-+}
-+
- /* Fix for machine name #ifdefs that are not in the namespace reserved
- by the C standard. They won't be defined if compiling with -ansi,
- and the headers will break. We go to some trouble to only change
-@@ -524,7 +557,7 @@ FIX_PROC_HEAD( machine_name_fix )
- /* If the 'name_pat' matches in between base and limit, we have
- a bogon. It is not worth the hassle of excluding comments
- because comments on #if/#ifdef lines are rare, and strings on
-- such lines are illegal.
-+ such lines are only legal in a "__has_include" directive.
-
- REG_NOTBOL means 'base' is not at the beginning of a line, which
- shouldn't matter since the name_re has no ^ anchor, but let's
-@@ -544,8 +577,16 @@ FIX_PROC_HEAD( machine_name_fix )
- break;
-
- p = base + match[0].rm_so;
-- base += match[0].rm_eo;
-
-+ /* Check if the match is in __has_include(...) (PR 91085). */
-+ q = check_has_inc (base, p, limit);
-+ if (q)
-+ {
-+ base = q + 1;
-+ goto again;
-+ }
-+
-+ base += match[0].rm_eo;
- /* One more test: if on the same line we have the same string
- with the appropriate underscores, then leave it alone.
- We want exactly two leading and trailing underscores. */
-diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
-index f58e7771e1c..71bd717c233 100644
---- a/fixincludes/inclhack.def
-+++ b/fixincludes/inclhack.def
-@@ -3114,7 +3114,8 @@ fix = {
- c_fix = machine_name;
-
- test_text = "/* MACH_DIFF: */\n"
-- "#if defined( i386 ) || defined( sparc ) || defined( vax )"
-+ "#if defined( i386 ) || defined( sparc ) || defined( vax ) || "
-+ "defined( linux ) || __has_include ( <linux.h> )"
- "\n/* no uniform test, so be careful :-) */";
- };
-
-diff --git a/fixincludes/tests/base/testing.h b/fixincludes/tests/base/testing.h
-index cf95321fb86..8b3accaf04e 100644
---- a/fixincludes/tests/base/testing.h
-+++ b/fixincludes/tests/base/testing.h
-@@ -64,7 +64,7 @@ BSD43__IOWR('T', 1) /* Some are multi-line */
-
- #if defined( MACHINE_NAME_CHECK )
- /* MACH_DIFF: */
--#if defined( i386 ) || defined( sparc ) || defined( vax )
-+#if defined( i386 ) || defined( sparc ) || defined( vax ) || defined( linux ) || __has_include ( <linux.h> )
- /* no uniform test, so be careful :-) */
- #endif /* MACHINE_NAME_CHECK */
-
---
-2.37.3
diff --git a/packages/gcc/10.4.0/0011-crystax.patch b/packages/gcc/10.4.0/0011-crystax.patch
deleted file mode 100644
index f1f9eb12..00000000
--- a/packages/gcc/10.4.0/0011-crystax.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-commit 9f057b62caafe08c968103d39b5df82486a175c2
-Author: Dmitry Moskalchuk <dm@crystax.net>
-Date: Thu Aug 13 16:11:54 2015 +0300
-
- [android] Add additional multilib option: mfloat-abi=hard
-
- Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-
----
- 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 @@
--MULTILIB_OPTIONS = march=armv7-a mthumb
--MULTILIB_DIRNAMES = armv7-a thumb
--MULTILIB_EXCEPTIONS =
-+MULTILIB_OPTIONS = march=armv7-a mthumb mfloat-abi=hard
-+MULTILIB_DIRNAMES = armv7-a thumb hard
-+MULTILIB_EXCEPTIONS = mfloat-abi=hard* mthumb/mfloat-abi=hard*
- MULTILIB_MATCHES =
- MULTILIB_OSDIRNAMES =
-+MULTILIB_EXTRA_OPTS = Wl,--no-warn-mismatch
-
- # The "special" multilib can be used to build native applications for Android,
- # as opposed to native shared libraries that are then called via JNI.
diff --git a/packages/gcc/10.4.0/0012-crystax.patch b/packages/gcc/10.4.0/0012-crystax.patch
deleted file mode 100644
index 4af4f5ba..00000000
--- a/packages/gcc/10.4.0/0012-crystax.patch
+++ /dev/null
@@ -1,277 +0,0 @@
-commit 44a81ebb7698dac41ffa7acd5e0cc1578e5ab1fd
-Author: H.J. Lu <hongjiu.lu@intel.com>
-Date: Mon Apr 14 15:59:47 2014 -0700
-
- [android] Always enable --eh-frame-hdr for static executable
-
- See 5e6cdf76af295c9a39b695ca228cff675e8ff4ae and
- 23e3137ee2897464b051599b85a09f130d3ad05d
-
- Change-Id: Ibda473188e5a10f2a0592f2494ad00ad1f91e04b
- Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-
----
- 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/sol2.h | 4 +++
- gcc/configure | 36 +++++++++++++++++++++++++++++++++
- gcc/configure.ac | 29 ++++++++++++++++++++++++++
- gcc/testsuite/g++.dg/eh/spec3-static.C | 25 ++++++++++++++++++++++
- libgcc/crtstuff.c | 11 ++++++----
- 10 files changed, 123 insertions(+), 4 deletions(-)
-
---- a/gcc/config.in
-+++ b/gcc/config.in
-@@ -2285,6 +2285,12 @@
- #endif
-
-
-+/* Define if your system supports PT_GNU_EH_FRAME for static executable. */
-+#ifndef USED_FOR_TARGET
-+#undef USE_EH_FRAME_HDR_FOR_STATIC
-+#endif
-+
-+
- /* Define to 1 if the 'long long' type is wider than 'long' but still
- efficiently supported by the host hardware. */
- #ifndef USED_FOR_TARGET
---- a/gcc/config/alpha/elf.h
-+++ b/gcc/config/alpha/elf.h
-@@ -142,5 +142,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)
-+#ifdef USE_EH_FRAME_HDR_FOR_STATIC
-+#define LINK_EH_SPEC "--eh-frame-hdr "
-+#else
- #define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr} "
- #endif
-+#endif
---- a/gcc/config/freebsd.h
-+++ b/gcc/config/freebsd.h
-@@ -45,8 +45,12 @@
- #define LIB_SPEC FBSD_LIB_SPEC
-
- #if defined(HAVE_LD_EH_FRAME_HDR)
-+#ifdef USE_EH_FRAME_HDR_FOR_STATIC
-+#define LINK_EH_SPEC "--eh-frame-hdr "
-+#else
- #define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr} "
- #endif
-+#endif
-
- #ifdef TARGET_LIBC_PROVIDES_SSP
- #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
---- a/gcc/config/gnu-user.h
-+++ b/gcc/config/gnu-user.h
-@@ -106,8 +106,12 @@
- #define LIB_SPEC GNU_USER_TARGET_LIB_SPEC
-
- #if defined(HAVE_LD_EH_FRAME_HDR)
-+#ifdef USE_EH_FRAME_HDR_FOR_STATIC
-+#define LINK_EH_SPEC "--eh-frame-hdr "
-+#else
- #define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr} "
- #endif
-+#endif
-
- #define GNU_USER_TARGET_LINK_GCC_C_SEQUENCE_SPEC \
- "%{static|static-pie:--start-group} %G %{!nolibc:%L} \
---- a/gcc/config/openbsd.h
-+++ b/gcc/config/openbsd.h
-@@ -136,8 +136,12 @@
- #define LIB_SPEC OBSD_LIB_SPEC
-
- #if defined(HAVE_LD_EH_FRAME_HDR)
-+#ifdef USE_EH_FRAME_HDR_FOR_STATIC
-+#define LINK_EH_SPEC "--eh-frame-hdr "
-+#else
- #define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr} "
- #endif
-+#endif
-
- #undef LIB_SPEC
- #define LIB_SPEC OBSD_LIB_SPEC
---- a/gcc/config/sol2.h
-+++ b/gcc/config/sol2.h
-@@ -434,7 +434,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)
-+#ifdef USE_EH_FRAME_HDR_FOR_STATIC
-+#define LINK_EH_SPEC "--eh-frame-hdr "
-+#else
- #define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr} "
-+#endif
- #endif /* HAVE_LD_EH_FRAME && TARGET_DL_ITERATE_PHDR */
- #endif
-
---- a/gcc/configure
-+++ b/gcc/configure
-@@ -999,6 +999,7 @@
- enable_fix_cortex_a53_843419
- with_glibc_version
- enable_gnu_unique_object
-+enable_eh_frame_hdr_for_static
- enable_linker_build_id
- enable_libssp
- enable_default_ssp
-@@ -1753,6 +1754,9 @@
- --enable-gnu-unique-object
- enable the use of the @gnu_unique_object ELF
- extension on glibc systems
-+ --enable-eh-frame-hdr-for-static
-+ enable linker PT_GNU_EH_FRAME support for static
-+ executable
- --enable-linker-build-id
- compiler will always pass --build-id to linker
- --enable-libssp enable linking against libssp
-@@ -28974,6 +28978,38 @@
-
- $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
-
-+ # Check whether --enable-eh-frame-hdr-for-static was given.
-+if test "${enable_eh_frame_hdr_for_static+set}" = set; then :
-+ enableval=$enable_eh_frame_hdr_for_static; case $enable_eh_frame_hdr_for_static in
-+ yes | no) ;;
-+ *) as_fn_error "'$enable_eh_frame_hdr_for_static' is an invalid
-+value for --enable-eh-frame-hdr-for-static.
-+Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
-+ esac
-+else
-+ # Only support for glibc 2.3.0 or higher with AT_PHDR/AT_PHNUM from
-+# Linux kernel.
-+ if test x$host = x$build -a x$host = x$target &&
-+ ldd --version 2>&1 >/dev/null &&
-+ glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
-+ glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
-+ glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
-+ glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
-+ if test "$glibcnum" -ge 2003 ; then
-+ auvx=`LD_SHOW_AUXV=1 ldd 2>/dev/null`
-+ if echo "$auvx" | grep AT_PHDR > /dev/null &&
-+ echo "$auvx" | grep AT_PHNUM > /dev/null; then
-+ enable_eh_frame_hdr_for_static=yes
-+ fi
-+ fi
-+ fi
-+fi
-+
-+ if test x$enable_eh_frame_hdr_for_static = xyes; then
-+
-+$as_echo "#define USE_EH_FRAME_HDR_FOR_STATIC 1" >>confdefs.h
-+
-+ fi
- 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; }
---- a/gcc/configure.ac
-+++ b/gcc/configure.ac
-@@ -5427,6 +5427,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.])
-+ AC_ARG_ENABLE(eh-frame-hdr-for-static,
-+ [AS_HELP_STRING([--enable-eh-frame-hdr-for-static],
-+ [enable linker PT_GNU_EH_FRAME support for static executable])],
-+ [case $enable_eh_frame_hdr_for_static in
-+ yes | no) ;;
-+ *) AC_MSG_ERROR(['$enable_eh_frame_hdr_for_static' is an invalid
-+value for --enable-eh-frame-hdr-for-static.
-+Valid choices are 'yes' and 'no'.]) ;;
-+ esac],
-+# Only support for glibc 2.3.0 or higher with AT_PHDR/AT_PHNUM from
-+# Linux kernel.
-+ [[if test x$host = x$build -a x$host = x$target &&
-+ ldd --version 2>&1 >/dev/null &&
-+ glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
-+ glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
-+ glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
-+ glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
-+ if test "$glibcnum" -ge 2003 ; then
-+ auvx=`LD_SHOW_AUXV=1 ldd 2>/dev/null`
-+ if echo "$auvx" | grep AT_PHDR > /dev/null &&
-+ echo "$auvx" | grep AT_PHNUM > /dev/null; then
-+ enable_eh_frame_hdr_for_static=yes
-+ fi
-+ fi
-+ fi]])
-+ if test x$enable_eh_frame_hdr_for_static = xyes; then
-+ AC_DEFINE(USE_EH_FRAME_HDR_FOR_STATIC, 1,
-+[Define if your system supports PT_GNU_EH_FRAME for static executable.])
-+ fi
- fi
- AC_MSG_RESULT($gcc_cv_ld_eh_frame_hdr)
-
---- /dev/null
-+++ b/gcc/testsuite/g++.dg/eh/spec3-static.C
-@@ -0,0 +1,25 @@
-+// PR c++/4381
-+// Test that exception-specs work properly for classes with virtual bases.
-+
-+// { dg-do run }
-+// { dg-options "-static" }
-+
-+class Base {};
-+
-+struct A : virtual public Base
-+{
-+ A() {}
-+};
-+
-+struct B {};
-+
-+void func() throw (B,A)
-+{
-+ throw A();
-+}
-+
-+int main(void)
-+{
-+ try { func(); }
-+ catch (A& a) { }
-+}
---- a/libgcc/crtstuff.c
-+++ b/libgcc/crtstuff.c
-@@ -88,7 +88,8 @@
- #if defined(OBJECT_FORMAT_ELF) \
- && !defined(OBJECT_FORMAT_FLAT) \
- && defined(HAVE_LD_EH_FRAME_HDR) \
-- && !defined(inhibit_libc) && !defined(CRTSTUFFT_O) \
-+ && !defined(inhibit_libc) \
-+ && (defined(USE_EH_FRAME_HDR_FOR_STATIC) || !defined(CRTSTUFFT_O)) \
- && defined(BSD_DL_ITERATE_PHDR_AVAILABLE)
- #include <link.h>
- # define USE_PT_GNU_EH_FRAME
-@@ -97,7 +98,8 @@
- #if defined(OBJECT_FORMAT_ELF) \
- && !defined(OBJECT_FORMAT_FLAT) \
- && defined(HAVE_LD_EH_FRAME_HDR) && defined(TARGET_DL_ITERATE_PHDR) \
-- && !defined(inhibit_libc) && !defined(CRTSTUFFT_O) \
-+ && !defined(inhibit_libc) \
-+ && (defined(USE_EH_FRAME_HDR_FOR_STATIC) || !defined(CRTSTUFFT_O)) \
- && defined(__sun__) && defined(__svr4__)
- #include <link.h>
- # define USE_PT_GNU_EH_FRAME
-@@ -106,7 +108,8 @@
- #if defined(OBJECT_FORMAT_ELF) \
- && !defined(OBJECT_FORMAT_FLAT) \
- && defined(HAVE_LD_EH_FRAME_HDR) \
-- && !defined(inhibit_libc) && !defined(CRTSTUFFT_O) \
-+ && !defined(inhibit_libc) \
-+ && (defined(USE_EH_FRAME_HDR_FOR_STATIC) || !defined(CRTSTUFFT_O)) \
- && 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 @@
- #if defined(OBJECT_FORMAT_ELF) \
- && !defined(OBJECT_FORMAT_FLAT) \
- && defined(HAVE_LD_EH_FRAME_HDR) \
-- && !defined(CRTSTUFFT_O) \
-+ && (defined(USE_EH_FRAME_HDR_FOR_STATIC) || !defined(CRTSTUFFT_O)) \
- && defined(inhibit_libc) \
- && (defined(__GLIBC__) || defined(__gnu_linux__) || defined(__GNU__))
- /* On systems using glibc, an inhibit_libc build of libgcc is only
diff --git a/packages/gcc/10.4.0/0013-crystax.patch b/packages/gcc/10.4.0/0013-crystax.patch
deleted file mode 100644
index a9ef42a7..00000000
--- a/packages/gcc/10.4.0/0013-crystax.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-commit 778a9ef107f51544d583f110e92b75f4d9d79117
-Author: Dmitry Moskalchuk <dm@crystax.net>
-Date: Thu Aug 20 19:11:07 2015 +0300
-
- [android] Don't use PIE copyrelocs for x86/x86_64
-
- Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-
----
- gcc/config/i386/i386.c | 1 +
- 1 file changed, 1 insertion(+)
-
---- a/gcc/config/i386/i386.c
-+++ b/gcc/config/i386/i386.c
-@@ -10353,6 +10353,7 @@
- else if (!SYMBOL_REF_FAR_ADDR_P (op0)
- && (SYMBOL_REF_LOCAL_P (op0)
- || (HAVE_LD_PIE_COPYRELOC
-+ && !TARGET_HAS_BIONIC
- && flag_pie
- && !SYMBOL_REF_WEAK (op0)
- && !SYMBOL_REF_FUNCTION_P (op0)))
diff --git a/packages/gcc/10.4.0/0014-crystax.patch b/packages/gcc/10.4.0/0014-crystax.patch
deleted file mode 100644
index 8f2eb438..00000000
--- a/packages/gcc/10.4.0/0014-crystax.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-commit dbeae1190cabad83999f2540523f045acc1bb4ec
-Author: Dmitry Moskalchuk <dm@crystax.net>
-Date: Fri Aug 21 17:41:59 2015 +0300
-
- [android] Always use gthr-posix.h instead of gthr-default.h
-
- Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-
----
- libgcc/gthr.h | 4 ++++
- 1 file changed, 4 insertions(+)
-
---- a/libgcc/gthr.h
-+++ b/libgcc/gthr.h
-@@ -145,7 +145,11 @@
- #define GTHREAD_USE_WEAK 1
- #endif
- #endif
-+#if __ANDROID__
-+#include "gthr-posix.h"
-+#else
- #include "gthr-default.h"
-+#endif
-
- #ifndef HIDE_EXPORTS
- #pragma GCC visibility pop
diff --git a/packages/gcc/10.4.0/0015-crystax.patch b/packages/gcc/10.4.0/0015-crystax.patch
deleted file mode 100644
index 6c558916..00000000
--- a/packages/gcc/10.4.0/0015-crystax.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-commit 8a66d422721ae5999737d7825701ff22097d287b
-Author: Andrew Hsieh <andrewhsieh@google.com>
-Date: Mon Apr 14 21:05:51 2014 -0700
-
- [android] Fix ARM generates insufficient alignment for NEON vst/vld
-
- See d909af3e2469aad87d5c3e79b93c778fd26c03a9
-
- Change-Id: Ie1de9f946f397196bb6f1623f5add86933739484
- Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-
----
- 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
-@@ -24179,9 +24179,13 @@
- memsize = MEM_SIZE (x);
-
- /* Only certain alignment specifiers are supported by the hardware. */
-- if (memsize == 32 && (align % 32) == 0)
-+ /* Note that ARM EABI only guarentees 8-byte stack alignment. While GCC
-+ honors stricter alignment of composite type in user code, it doesn't
-+ observe the alignment of memory passed as an extra argument for function
-+ returning large composite type. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57271 */
-+ if (memsize == 32 && (align % 32) == 0 && !TARGET_AAPCS_BASED)
- align_bits = 256;
-- else if ((memsize == 16 || memsize == 32) && (align % 16) == 0)
-+ else if ((memsize == 16 || memsize == 32) && (align % 16) == 0 && !TARGET_AAPCS_BASED)
- align_bits = 128;
- else if (memsize >= 8 && (align % 8) == 0)
- align_bits = 64;
diff --git a/packages/gcc/10.4.0/0016-crystax.patch b/packages/gcc/10.4.0/0016-crystax.patch
deleted file mode 100644
index 8c21a1cc..00000000
--- a/packages/gcc/10.4.0/0016-crystax.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-commit 89d27bc45ee7325dcfff6748da0f8b9c1dc1f234
-Author: Dmitry Moskalchuk <dm@crystax.net>
-Date: Sat Aug 22 09:55:55 2015 +0300
-
- [android][i386] Remove throw() declaration from posix_memalign() proto
-
- Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-
----
- 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 @@
- #ifndef __cplusplus
- extern int posix_memalign (void **, size_t, size_t);
- #else
--extern "C" int posix_memalign (void **, size_t, size_t) throw ();
-+extern "C" int posix_memalign (void **, size_t, size_t);
- #endif
-
- static __inline void *
diff --git a/packages/gcc/10.4.0/0017-crystax.patch b/packages/gcc/10.4.0/0017-crystax.patch
deleted file mode 100644
index 28284ff4..00000000
--- a/packages/gcc/10.4.0/0017-crystax.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-commit 9ae82f7cfc1073820092dd9f957559667e77db0d
-Author: Dmitry Moskalchuk <dm@crystax.net>
-Date: Tue Aug 25 09:36:42 2015 +0300
-
- [android] Explicitly make _Unwind_Resume visible for arm64/mips64
-
- Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
-
----
- 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
-@@ -56,4 +56,8 @@
- #define ENDFILE_SPEC \
- LINUX_OR_ANDROID_LD (GNU_USER_TARGET_ENDFILE_SPEC, ANDROID_ENDFILE_SPEC)
-
-+#ifdef IN_LIBGCC2
-+#define LIBGCC2_UNWIND_ATTRIBUTE __attribute__((visibility("default")))
-+#endif
-+
- #endif /* GCC_AARCH64_LINUX_ANDROID_H */
---- a/gcc/config/mips/linux-common.h
-+++ b/gcc/config/mips/linux-common.h
-@@ -65,3 +65,7 @@
-
- /* The default value isn't sufficient in 64-bit mode. */
- #define STACK_CHECK_PROTECT (TARGET_64BIT ? 16 * 1024 : 12 * 1024)
-+
-+#ifdef IN_LIBGCC2
-+#define LIBGCC2_UNWIND_ATTRIBUTE __attribute__((visibility("default")))
-+#endif
diff --git a/packages/gcc/10.4.0/0018-isl-0.20.patch b/packages/gcc/10.4.0/0018-isl-0.20.patch
deleted file mode 100644
index 3e14966d..00000000
--- a/packages/gcc/10.4.0/0018-isl-0.20.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-commit 9fabe086c9f5c3896297f7f35491d785ba6f49a0
-Author: Alexey Neyman <stilor@att.net>
-Date: Mon Sep 24 22:50:11 2018 -0700
-
- Fix build with ISL 0.20
-
- * gcc/graphite.h: Include <isl/id.h> and <isl/space.h>; these
- headers are no longer pulled in by <isl/val.h>.
-
- Signed-off-by: Alexey Neyman <stilor@att.net>
-
----
- gcc/graphite.h | 2 ++
- 1 file changed, 2 insertions(+)
-
---- a/gcc/graphite.h
-+++ b/gcc/graphite.h
-@@ -26,6 +26,8 @@
- #include <isl/options.h>
- #include <isl/ctx.h>
- #include <isl/val.h>
-+#include <isl/id.h>
-+#include <isl/space.h>
- #include <isl/set.h>
- #include <isl/union_set.h>
- #include <isl/map.h>
diff --git a/packages/gcc/10.4.0/0019-AArch64-Fix-build-issue-with-aarch64-builtins.c-on-M.patch b/packages/gcc/10.4.0/0019-AArch64-Fix-build-issue-with-aarch64-builtins.c-on-M.patch
deleted file mode 100644
index 00011692..00000000
--- a/packages/gcc/10.4.0/0019-AArch64-Fix-build-issue-with-aarch64-builtins.c-on-M.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 8ae8c6bba601ce9ae8a3d54776ef934fb0a7986d Mon Sep 17 00:00:00 2001
-From: Kumar Gala <kumar.gala@linaro.org>
-Date: Wed, 11 Nov 2020 08:09:50 -0600
-Subject: [PATCH] [AArch64] Fix build issue with aarch64-builtins.c on MacOS X
- host
-
-When building w/clang on MacOS X we get the following error:
-
-gcc/config/aarch64/aarch64-builtins.c:1231:3: error: expected expression
-AARCH64_INIT_MEMTAG_BUILTINS_DECL (IRG, irg, irg, fntype);
-
-Fix this by adding '-std=gnu++11' to the compile line.
-
-Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
----
- gcc/config/aarch64/t-aarch64 | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- a/gcc/config/aarch64/t-aarch64
-+++ b/gcc/config/aarch64/t-aarch64
-@@ -41,7 +41,7 @@
- $(srcdir)/config/aarch64/aarch64-simd-builtins.def \
- $(srcdir)/config/aarch64/aarch64-simd-builtin-types.def \
- aarch64-builtin-iterators.h
-- $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-+ $(COMPILER) -std=gnu++11 -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
- $(srcdir)/config/aarch64/aarch64-builtins.c
-
- aarch64-sve-builtins.o: $(srcdir)/config/aarch64/aarch64-sve-builtins.cc \
diff --git a/packages/gcc/10.4.0/0020-libstdcxx-pure-stdio.patch b/packages/gcc/10.4.0/0020-libstdcxx-pure-stdio.patch
deleted file mode 100644
index 7e3e6e65..00000000
--- a/packages/gcc/10.4.0/0020-libstdcxx-pure-stdio.patch
+++ /dev/null
@@ -1,267 +0,0 @@
-From ce06ad6901b1d24abb90d6baba5fe01c750ffb4e Mon Sep 17 00:00:00 2001
-From: Keith Packard <keithp@keithp.com>
-Date: Tue, 15 Dec 2020 17:39:24 +0000
-Subject: [PATCH] libstdc++: Support libc with stdio-only I/O in libstdc++
-
-The current libstdc++ basic_file_stdio.cc code assumes a POSIX API
-underneath the stdio implementation provided by the host libc. This
-means that the host must provide a fairly broad POSIX file API,
-including read, write, open, close, lseek and ioctl.
-
-This patch changes basic_file_stdio.cc to only use basic ANSI-C stdio
-functions, allowing it to be used with libc implementations like
-picolibc which may not have a POSIX operating system underneath.
-
-This is enabled by a new --enable-cstdio=stdio_pure configure option.
-
-Aided-by: Jonathan Wakely <jwakely@redhat.com>
-Signed-off-by: Keith Packard <keithp@keithp.com>
-
-libstdc++-v3/ChangeLog:
-
- * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Allow "stdio_pure"
- option and define _GLIBCXX_USE_PURE_STDIO when it is used. Also
- add "stdio_posix" option as an alias for "stdio".
- * config/io/basic_file_stdio.cc [_GLIBCXX_USE_PURE_STDIO]: Only
- use defined stdio entry points for all I/O operations, without
- direct calls to underlying POSIX functions.
- * config.h.in: Regenerate.
- * configure: Regenerate.
----
- libstdc++-v3/acinclude.m4 | 20 ++++++++----
- libstdc++-v3/config.h.in | 3 +
- libstdc++-v3/config/io/basic_file_stdio.cc | 46 +++++++++++++++++++++++++----
- libstdc++-v3/configure | 17 +++++++---
- 4 files changed, 69 insertions(+), 17 deletions(-)
-
---- a/libstdc++-v3/acinclude.m4
-+++ b/libstdc++-v3/acinclude.m4
-@@ -2797,24 +2797,30 @@
-
-
- dnl
--dnl Check for which I/O library to use: stdio, or something specific.
-+dnl Check for which I/O library to use: stdio and POSIX, or pure stdio.
- dnl
--dnl Default is stdio.
-+dnl Default is stdio_posix.
- dnl
- AC_DEFUN([GLIBCXX_ENABLE_CSTDIO], [
- AC_MSG_CHECKING([for underlying I/O to use])
- GLIBCXX_ENABLE(cstdio,stdio,[[[=PACKAGE]]],
-- [use target-specific I/O package], [permit stdio])
-+ [use target-specific I/O package], [permit stdio|stdio_posix|stdio_pure])
-
-- # Now that libio has been removed, you can have any color you want as long
-- # as it's black. This is one big no-op until other packages are added, but
-- # showing the framework never hurts.
-+ # The only available I/O model is based on stdio, via basic_file_stdio.
-+ # The default "stdio" is actually "stdio + POSIX" because it uses fdopen(3)
-+ # to get a file descriptor and then uses read(3) and write(3) with it.
-+ # The "stdio_pure" model doesn't use fdopen and only uses FILE* for I/O.
- case ${enable_cstdio} in
-- stdio)
-+ stdio*)
- CSTDIO_H=config/io/c_io_stdio.h
- BASIC_FILE_H=config/io/basic_file_stdio.h
- BASIC_FILE_CC=config/io/basic_file_stdio.cc
- AC_MSG_RESULT(stdio)
-+
-+ if test "x$enable_cstdio" = "xstdio_pure" ; then
-+ AC_DEFINE(_GLIBCXX_USE_STDIO_PURE, 1,
-+ [Define to restrict std::__basic_file<> to stdio APIs.])
-+ fi
- ;;
- esac
-
---- a/libstdc++-v3/config.h.in
-+++ b/libstdc++-v3/config.h.in
-@@ -974,6 +974,9 @@
- /* Define if sendfile is available in <sys/sendfile.h>. */
- #undef _GLIBCXX_USE_SENDFILE
-
-+/* Define to restrict std::__basic_file<> to stdio APIs. */
-+#undef _GLIBCXX_USE_STDIO_PURE
-+
- /* Define if struct stat has timespec members. */
- #undef _GLIBCXX_USE_ST_MTIM
-
---- a/libstdc++-v3/config/io/basic_file_stdio.cc
-+++ b/libstdc++-v3/config/io/basic_file_stdio.cc
-@@ -111,13 +111,21 @@
-
- // Wrapper handling partial write.
- static std::streamsize
-+#ifdef _GLIBCXX_USE_STDIO_PURE
-+ xwrite(FILE *__file, const char* __s, std::streamsize __n)
-+#else
- xwrite(int __fd, const char* __s, std::streamsize __n)
-+#endif
- {
- std::streamsize __nleft = __n;
-
- for (;;)
- {
-+#ifdef _GLIBCXX_USE_STDIO_PURE
-+ const std::streamsize __ret = fwrite(__file, 1, __nleft, __file);
-+#else
- const std::streamsize __ret = write(__fd, __s, __nleft);
-+#endif
- if (__ret == -1L && errno == EINTR)
- continue;
- if (__ret == -1L)
-@@ -133,7 +141,7 @@
- return __n - __nleft;
- }
-
--#ifdef _GLIBCXX_HAVE_WRITEV
-+#if defined(_GLIBCXX_HAVE_WRITEV) && !defined(_GLIBCXX_USE_STDIO_PURE)
- // Wrapper handling partial writev.
- static std::streamsize
- xwritev(int __fd, const char* __s1, std::streamsize __n1,
-@@ -286,9 +294,11 @@
- __basic_file<char>::is_open() const throw ()
- { return _M_cfile != 0; }
-
-+#ifndef _GLIBCCXX_USE_STDIO_PURE
- int
- __basic_file<char>::fd() throw ()
- { return fileno(_M_cfile); }
-+#endif
-
- __c_file*
- __basic_file<char>::file() throw ()
-@@ -315,29 +325,47 @@
- {
- streamsize __ret;
- do
-+#ifdef _GLIBCXX_USE_STDIO_PURE
-+ __ret = fread(__s, 1, __n, this->file());
-+#else
- __ret = read(this->fd(), __s, __n);
-+#endif
- while (__ret == -1L && errno == EINTR);
- return __ret;
- }
-
- streamsize
- __basic_file<char>::xsputn(const char* __s, streamsize __n)
-- { return xwrite(this->fd(), __s, __n); }
-+ {
-+#ifdef _GLIBCXX_USE_STDIO_PURE
-+ return xwrite(this->file(), __s, __n);
-+#else
-+ return xwrite(this->fd(), __s, __n);
-+#endif
-+ }
-
- streamsize
- __basic_file<char>::xsputn_2(const char* __s1, streamsize __n1,
- const char* __s2, streamsize __n2)
- {
- streamsize __ret = 0;
--#ifdef _GLIBCXX_HAVE_WRITEV
-+#if defined(_GLIBCXX_HAVE_WRITEV) && !defined(_GLIBCXX_USE_STDIO_PURE)
- __ret = xwritev(this->fd(), __s1, __n1, __s2, __n2);
- #else
- if (__n1)
-+#ifdef _GLIBCXX_USE_STDIO_PURE
-+ __ret = xwrite(this->file(), __s1, __n1);
-+#else
- __ret = xwrite(this->fd(), __s1, __n1);
-+#endif
-
- if (__ret == __n1)
-+#ifdef _GLIBCXX_USE_STDIO_PURE
-+ __ret += xwrite(this->file(), __s2, __n2);
-+#else
- __ret += xwrite(this->fd(), __s2, __n2);
- #endif
-+#endif
- return __ret;
- }
-
-@@ -350,8 +378,12 @@
- if (__off > numeric_limits<off_t>::max()
- || __off < numeric_limits<off_t>::min())
- return -1L;
-+#ifdef _GLIBCXX_USE_STDIO_PURE
-+ return fseek(this->file(), __off, __way);
-+#else
- return lseek(this->fd(), __off, __way);
- #endif
-+#endif
- }
-
- int
-@@ -361,7 +393,7 @@
- streamsize
- __basic_file<char>::showmanyc()
- {
--#ifndef _GLIBCXX_NO_IOCTL
-+#if !defined(_GLIBCXX_NO_IOCTL) && !defined(_GLIBCXX_USE_STDIO_PURE)
- #ifdef FIONREAD
- // Pipes and sockets.
- int __num = 0;
-@@ -371,7 +403,7 @@
- #endif
- #endif
-
--#ifdef _GLIBCXX_HAVE_POLL
-+#if defined(_GLIBCXX_HAVE_POLL) && !defined(_GLIBCXX_USE_STDIO_PURE)
- // Cheap test.
- struct pollfd __pfd[1];
- __pfd[0].fd = this->fd();
-@@ -395,9 +427,13 @@
- struct stat __buffer;
- const int __err = fstat(this->fd(), &__buffer);
- if (!__err && _GLIBCXX_ISREG(__buffer.st_mode))
-+#ifdef _GLIBCXX_USE_STDIO_PURE
-+ return __buffer.st_size - fseek(this->file(), 0, ios_base::cur);
-+#else
- return __buffer.st_size - lseek(this->fd(), 0, ios_base::cur);
- #endif
- #endif
-+#endif
- return 0;
- }
-
---- a/libstdc++-v3/configure
-+++ b/libstdc++-v3/configure
-@@ -16301,7 +16301,7 @@
- if test "${enable_cstdio+set}" = set; then :
- enableval=$enable_cstdio;
- case "$enableval" in
-- stdio) ;;
-+ stdio|stdio_posix|stdio_pure) ;;
- *) as_fn_error $? "Unknown argument to enable/disable cstdio" "$LINENO" 5 ;;
- esac
-
-@@ -16311,16 +16311,23 @@
-
-
-
-- # Now that libio has been removed, you can have any color you want as long
-- # as it's black. This is one big no-op until other packages are added, but
-- # showing the framework never hurts.
-+ # The only available I/O model is based on stdio, via basic_file_stdio.
-+ # The default "stdio" is actually "stdio + POSIX" because it uses fdopen(3)
-+ # to get a file descriptor and then uses read(3) and write(3) with it.
-+ # The "stdio_pure" model doesn't use fdopen and only uses FILE* for I/O.
- case ${enable_cstdio} in
-- stdio)
-+ stdio*)
- CSTDIO_H=config/io/c_io_stdio.h
- BASIC_FILE_H=config/io/basic_file_stdio.h
- BASIC_FILE_CC=config/io/basic_file_stdio.cc
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio" >&5
- $as_echo "stdio" >&6; }
-+
-+ if test "x$enable_cstdio" = "xstdio_pure" ; then
-+
-+$as_echo "#define _GLIBCXX_USE_STDIO_PURE 1" >>confdefs.h
-+
-+ fi
- ;;
- esac
-
diff --git a/packages/gcc/10.4.0/0021-Darwin-Arm64-Initial-support-for-the-self-host-drive.patch b/packages/gcc/10.4.0/0021-Darwin-Arm64-Initial-support-for-the-self-host-drive.patch
deleted file mode 100644
index dc63fe5d..00000000
--- a/packages/gcc/10.4.0/0021-Darwin-Arm64-Initial-support-for-the-self-host-drive.patch
+++ /dev/null
@@ -1,86 +0,0 @@
-From ffecb0ce72f51ec134dc33636eedcebe53e4ec9e Mon Sep 17 00:00:00 2001
-From: Iain Sandoe <iain@sandoe.co.uk>
-Date: Tue, 18 Aug 2020 22:29:51 +0100
-Subject: [PATCH 2/2] Darwin, Arm64: Initial support for the self-host driver.
-
-At present, this just includes the generic Darwin stuff.
-
-NOTE:
-
-This patch is pulled from: https://github.com/iains/gcc-darwin-arm64/
-
-See commit 89dc5a9d5ed3e6b2ba6a4725bd51841ee758b6cd
-
-Its been backported to gcc-10.2
----
- gcc/config.host | 7 +++++-
- gcc/config/aarch64/host-aarch64-darwin.c | 32 +++++++++++++++++++++++++++++++
- gcc/config/aarch64/x-darwin | 3 ++
- 3 files changed, 41 insertions(+), 1 deletion(-)
- create mode 100644 gcc/config/aarch64/host-aarch64-darwin.c
- create mode 100644 gcc/config/aarch64/x-darwin
-
---- a/gcc/config.host
-+++ b/gcc/config.host
-@@ -99,7 +99,8 @@
- esac
-
- case ${host} in
-- aarch64*-*-freebsd* | aarch64*-*-linux* | aarch64*-*-fuchsia*)
-+ aarch64*-*-freebsd* | aarch64*-*-linux* | aarch64*-*-fuchsia* |\
-+ aarch64-*-darwin* | arm64*-*-darwin*)
- case ${target} in
- aarch64*-*-*)
- host_extra_gcc_objs="driver-aarch64.o"
-@@ -251,6 +252,10 @@
- host_extra_gcc_objs="${host_extra_gcc_objs} driver-mingw32.o"
- host_lto_plugin_soname=liblto_plugin-0.dll
- ;;
-+ aarch64-*-darwin* | arm64-*-darwin*)
-+ out_host_hook_obj="${out_host_hook_obj} host-aarch64-darwin.o"
-+ host_xmake_file="${host_xmake_file} aarch64/x-darwin"
-+ ;;
- i[34567]86-*-darwin* | x86_64-*-darwin*)
- out_host_hook_obj="${out_host_hook_obj} host-i386-darwin.o"
- host_xmake_file="${host_xmake_file} i386/x-darwin"
---- /dev/null
-+++ b/gcc/config/aarch64/host-aarch64-darwin.c
-@@ -0,0 +1,32 @@
-+/* Arm64-darwin host-specific hook definitions.
-+ Copyright (C) 2020 Free Software Foundation, Inc.
-+
-+This file is part of GCC.
-+
-+GCC is free software; you can redistribute it and/or modify it under
-+the terms of the GNU General Public License as published by the Free
-+Software Foundation; either version 3, or (at your option) any later
-+version.
-+
-+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
-+WARRANTY; without even the implied warranty of MERCHANTABILITY or
-+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-+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/>. */
-+
-+#define IN_TARGET_CODE 1
-+
-+#include "config.h"
-+#include "system.h"
-+#include "coretypes.h"
-+#include "hosthooks.h"
-+#include "hosthooks-def.h"
-+#include "config/host-darwin.h"
-+
-+/* Darwin doesn't do anything special for arm64/aarch64 hosts; this file
-+ exists just to include the generic config/host-darwin.h. */
-+
-+const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;
---- /dev/null
-+++ b/gcc/config/aarch64/x-darwin
-@@ -0,0 +1,3 @@
-+host-aarch64-darwin.o : $(srcdir)/config/aarch64/host-aarch64-darwin.c
-+ $(COMPILE) $<
-+ $(POSTCOMPILE)
diff --git a/packages/gcc/10.4.0/0022-Remove-use-of-include_next-from-c-headers.patch b/packages/gcc/10.4.0/0022-Remove-use-of-include_next-from-c-headers.patch
deleted file mode 100644
index b32fe559..00000000
--- a/packages/gcc/10.4.0/0022-Remove-use-of-include_next-from-c-headers.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 4cea8f51c23ce7112f21ff4091e7d97272b81664 Mon Sep 17 00:00:00 2001
-From: Keith Packard <keithp@keithp.com>
-Date: Sun, 24 Jan 2021 14:20:33 -0800
-Subject: [PATCH] Remove use of include_next from c++ headers
-
-Using include_next bypasses the default header search path and lets
-files later in the include path take priority over earlier files.
-
-This makes replacing libc impossible as the default libc headers will
-occur after the libstdc++ headers, and so be picked up in place of
-headers inserted at the begining of the search path or appended to the
-end of the search path.
-
-Using include_next is a hack to work-around broken combinations of
-libraries, and is not necessary in a well constructed toolchain.
-
-Signed-off-by: Keith Packard <keithp@keithp.com>
----
- libstdc++-v3/include/bits/std_abs.h | 4 ++--
- libstdc++-v3/include/c/cassert | 2 +-
- libstdc++-v3/include/c/cctype | 2 +-
- libstdc++-v3/include/c/cerrno | 2 +-
- libstdc++-v3/include/c/cfloat | 2 +-
- libstdc++-v3/include/c/climits | 2 +-
- libstdc++-v3/include/c/clocale | 2 +-
- libstdc++-v3/include/c/cmath | 2 +-
- libstdc++-v3/include/c/csetjmp | 2 +-
- libstdc++-v3/include/c/csignal | 2 +-
- libstdc++-v3/include/c/cstdarg | 2 +-
- libstdc++-v3/include/c/cstddef | 2 +-
- libstdc++-v3/include/c/cstdio | 2 +-
- libstdc++-v3/include/c/cstdlib | 2 +-
- libstdc++-v3/include/c/cstring | 2 +-
- libstdc++-v3/include/c/ctime | 2 +-
- libstdc++-v3/include/c/cuchar | 2 +-
- libstdc++-v3/include/c/cwchar | 2 +-
- libstdc++-v3/include/c/cwctype | 2 +-
- libstdc++-v3/include/c_global/cmath | 2 +-
- libstdc++-v3/include/c_global/cstdlib | 2 +-
- 21 files changed, 22 insertions(+), 22 deletions(-)
-
---- a/libstdc++-v3/include/bits/std_abs.h
-+++ b/libstdc++-v3/include/bits/std_abs.h
-@@ -35,9 +35,9 @@
- #include <bits/c++config.h>
-
- #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
--#include_next <stdlib.h>
-+#include <stdlib.h>
- #ifdef __CORRECT_ISO_CPP_MATH_H_PROTO
--# include_next <math.h>
-+# include <math.h>
- #endif
- #undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
-
---- a/libstdc++-v3/include/c/cassert
-+++ b/libstdc++-v3/include/c/cassert
-@@ -31,4 +31,4 @@
- #pragma GCC system_header
-
- #include <bits/c++config.h>
--#include_next <assert.h>
-+#include <assert.h>
---- a/libstdc++-v3/include/c/cctype
-+++ b/libstdc++-v3/include/c/cctype
-@@ -31,6 +31,6 @@
-
- #pragma GCC system_header
-
--#include_next <ctype.h>
-+#include <ctype.h>
-
- #endif
---- a/libstdc++-v3/include/c/cerrno
-+++ b/libstdc++-v3/include/c/cerrno
-@@ -41,7 +41,7 @@
- #pragma GCC system_header
-
- #include <bits/c++config.h>
--#include_next <errno.h>
-+#include <errno.h>
-
- // Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998
- #ifndef errno
---- a/libstdc++-v3/include/c/cfloat
-+++ b/libstdc++-v3/include/c/cfloat
-@@ -32,6 +32,6 @@
- #pragma GCC system_header
-
- #include <bits/c++config.h>
--#include_next <float.h>
-+#include <float.h>
-
- #endif
---- a/libstdc++-v3/include/c/climits
-+++ b/libstdc++-v3/include/c/climits
-@@ -32,6 +32,6 @@
- #pragma GCC system_header
-
- #include <bits/c++config.h>
--#include_next <limits.h>
-+#include <limits.h>
-
- #endif
---- a/libstdc++-v3/include/c/clocale
-+++ b/libstdc++-v3/include/c/clocale
-@@ -31,6 +31,6 @@
-
- #pragma GCC system_header
-
--#include_next <locale.h>
-+#include <locale.h>
-
- #endif
---- a/libstdc++-v3/include/c/cmath
-+++ b/libstdc++-v3/include/c/cmath
-@@ -33,7 +33,7 @@
-
- #include <bits/c++config.h>
-
--#include_next <math.h>
-+#include <math.h>
-
- // Get rid of those macros defined in <math.h> in lieu of real functions.
- #undef abs
---- a/libstdc++-v3/include/c/csetjmp
-+++ b/libstdc++-v3/include/c/csetjmp
-@@ -31,7 +31,7 @@
-
- #pragma GCC system_header
-
--#include_next <setjmp.h>
-+#include <setjmp.h>
-
- // Get rid of those macros defined in <setjmp.h> in lieu of real functions.
- #undef longjmp
---- a/libstdc++-v3/include/c/csignal
-+++ b/libstdc++-v3/include/c/csignal
-@@ -31,6 +31,6 @@
-
- #pragma GCC system_header
-
--#include_next <signal.h>
-+#include <signal.h>
-
- #endif
---- a/libstdc++-v3/include/c/cstdarg
-+++ b/libstdc++-v3/include/c/cstdarg
-@@ -32,6 +32,6 @@
- #pragma GCC system_header
-
- #undef __need___va_list
--#include_next <stdarg.h>
-+#include <stdarg.h>
-
- #endif
---- a/libstdc++-v3/include/c/cstddef
-+++ b/libstdc++-v3/include/c/cstddef
-@@ -35,6 +35,6 @@
- #define __need_ptrdiff_t
- #define __need_NULL
- #define __need_offsetof
--#include_next <stddef.h>
-+#include <stddef.h>
-
- #endif
---- a/libstdc++-v3/include/c/cstdio
-+++ b/libstdc++-v3/include/c/cstdio
-@@ -31,7 +31,7 @@
-
- #pragma GCC system_header
-
--#include_next <stdio.h>
-+#include <stdio.h>
-
- // Get rid of those macros defined in <stdio.h> in lieu of real functions.
- #undef clearerr
---- a/libstdc++-v3/include/c/cstdlib
-+++ b/libstdc++-v3/include/c/cstdlib
-@@ -31,6 +31,6 @@
-
- #pragma GCC system_header
-
--#include_next <stdlib.h>
-+#include <stdlib.h>
-
- #endif
---- a/libstdc++-v3/include/c/cstring
-+++ b/libstdc++-v3/include/c/cstring
-@@ -31,6 +31,6 @@
-
- #pragma GCC system_header
-
--#include_next <string.h>
-+#include <string.h>
-
- #endif
---- a/libstdc++-v3/include/c/ctime
-+++ b/libstdc++-v3/include/c/ctime
-@@ -31,6 +31,6 @@
-
- #pragma GCC system_header
-
--#include_next <time.h>
-+#include <time.h>
-
- #endif
---- a/libstdc++-v3/include/c/cuchar
-+++ b/libstdc++-v3/include/c/cuchar
-@@ -39,7 +39,7 @@
- #include <cwchar>
-
- #if _GLIBCXX_USE_C11_UCHAR_CXX11
--# include_next <uchar.h>
-+# include <uchar.h>
- #endif
-
- #endif // C++11
---- a/libstdc++-v3/include/c/cwchar
-+++ b/libstdc++-v3/include/c/cwchar
-@@ -36,7 +36,7 @@
- #include <ctime>
-
- #if _GLIBCXX_HAVE_WCHAR_H
--#include_next <wchar.h>
-+#include <wchar.h>
- #endif
-
- // Need to do a bit of trickery here with mbstate_t as char_traits
---- a/libstdc++-v3/include/c/cwctype
-+++ b/libstdc++-v3/include/c/cwctype
-@@ -34,7 +34,7 @@
- #include <bits/c++config.h>
-
- #if _GLIBCXX_HAVE_WCTYPE_H
--#include_next <wctype.h>
-+#include <wctype.h>
- #endif
-
- #endif
---- a/libstdc++-v3/include/c_global/cmath
-+++ b/libstdc++-v3/include/c_global/cmath
-@@ -42,7 +42,7 @@
- #include <bits/cpp_type_traits.h>
- #include <ext/type_traits.h>
- #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
--#include_next <math.h>
-+#include <math.h>
- #undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
- #include <bits/std_abs.h>
-
---- a/libstdc++-v3/include/c_global/cstdlib
-+++ b/libstdc++-v3/include/c_global/cstdlib
-@@ -72,7 +72,7 @@
- // Need to ensure this finds the C library's <stdlib.h> not a libstdc++
- // wrapper that might already be installed later in the include search path.
- #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
--#include_next <stdlib.h>
-+#include <stdlib.h>
- #undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
- #include <bits/std_abs.h>
-
diff --git a/packages/gcc/10.4.0/chksum b/packages/gcc/10.4.0/chksum
deleted file mode 100644
index 1f582bce..00000000
--- a/packages/gcc/10.4.0/chksum
+++ /dev/null
@@ -1,8 +0,0 @@
-md5 gcc-10.4.0.tar.xz d307b8748a74939359a5843f859a4dec
-sha1 gcc-10.4.0.tar.xz 352ec04a356ce6ab36975f7a4a5a38464ee98004
-sha256 gcc-10.4.0.tar.xz c9297d5bcd7cb43f3dfc2fed5389e948c9312fd962ef6a4ce455cff963ebe4f1
-sha512 gcc-10.4.0.tar.xz 440c08ca746da450d9a1b35e8fd2305cb27e7e6987cd9d0f7d375f3b1fc9e4b0bd7acb3cd7bf795e72fcbead59cdef5b6c152862f5d35cd9fbfe6902101ce648
-md5 gcc-10.4.0.tar.gz 854262f3582222f5dc8f093ca556e910
-sha1 gcc-10.4.0.tar.gz 0dadb589fd3f5ade1c9ad7cf05ae5032715e74e6
-sha256 gcc-10.4.0.tar.gz ab1974017834430de27fd803ade4389602a7d6ca1362496c57bef384b2a4cb07
-sha512 gcc-10.4.0.tar.gz 462c1d022751277e0933ce1f71d7550cd65f6e36e3e2c7e0b19d5ef074f826f5a53746af6aba8e359c8e906128c4973b18be0b4ddf722b276dd87a21ad5761de
diff --git a/packages/gcc/10.4.0/version.desc b/packages/gcc/10.4.0/version.desc
deleted file mode 100644
index e69de29b..00000000
--- a/packages/gcc/10.4.0/version.desc
+++ /dev/null