summaryrefslogtreecommitdiff
path: root/packages/gcc/8.1.0
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gcc/8.1.0')
-rw-r--r--packages/gcc/8.1.0/0000-libtool-leave-framework-alone.patch18
-rw-r--r--packages/gcc/8.1.0/0001-uclibc-conf.patch17
-rw-r--r--packages/gcc/8.1.0/0002-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch163
-rw-r--r--packages/gcc/8.1.0/0003-gcc-plugin-POSIX-include-sys-select-h.patch14
-rw-r--r--packages/gcc/8.1.0/0004-arm-softfloat-libgcc.patch31
-rw-r--r--packages/gcc/8.1.0/0005-fix-m68k-uclinux.patch21
-rw-r--r--packages/gcc/8.1.0/0006-libgfortran-missing-include.patch14
-rw-r--r--packages/gcc/8.1.0/0007-nios2-bad-multilib-default.patch31
-rw-r--r--packages/gcc/8.1.0/0008-libgcc-disable-split-stack-nothreads.patch17
-rw-r--r--packages/gcc/8.1.0/0009-bionic-ndk.patch60
-rw-r--r--packages/gcc/8.1.0/0010-crystax.patch523
-rw-r--r--packages/gcc/8.1.0/0011-crystax.patch27
-rw-r--r--packages/gcc/8.1.0/0012-crystax.patch293
-rw-r--r--packages/gcc/8.1.0/0013-crystax.patch22
-rw-r--r--packages/gcc/8.1.0/0014-crystax.patch26
-rw-r--r--packages/gcc/8.1.0/0015-crystax.patch33
-rw-r--r--packages/gcc/8.1.0/0016-crystax.patch23
-rw-r--r--packages/gcc/8.1.0/0017-crystax.patch34
-rw-r--r--packages/gcc/8.1.0/0018-ARC-Reimplement-return-padding-operation-for-ARC700.patch402
-rw-r--r--packages/gcc/8.1.0/0018-xscale.patch52
-rw-r--r--packages/gcc/8.1.0/0019-ARC-Add-multilib-support-for-linux-targets.patch76
-rw-r--r--packages/gcc/8.1.0/0020-ARC-Don-t-mention-not-yet-supported-hs4xy-CPUs.patch35
-rw-r--r--packages/gcc/8.1.0/0021-xtensa-fix-PR-target-65416.patch101
-rw-r--r--packages/gcc/8.1.0/chksum8
-rw-r--r--packages/gcc/8.1.0/version.desc0
25 files changed, 0 insertions, 2041 deletions
diff --git a/packages/gcc/8.1.0/0000-libtool-leave-framework-alone.patch b/packages/gcc/8.1.0/0000-libtool-leave-framework-alone.patch
deleted file mode 100644
index 1a86e41..0000000
--- a/packages/gcc/8.1.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/8.1.0/0001-uclibc-conf.patch b/packages/gcc/8.1.0/0001-uclibc-conf.patch
deleted file mode 100644
index aef750a..0000000
--- a/packages/gcc/8.1.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/8.1.0/0002-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch b/packages/gcc/8.1.0/0002-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch
deleted file mode 100644
index 20a88df..0000000
--- a/packages/gcc/8.1.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
-@@ -29805,6 +29805,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
-@@ -29827,6 +29830,11 @@
- export_sym_check=
- fi
- ;;
-+ *-*-mingw*|*-*-cygwin*|*-*-msys*)
-+ PICFLAG=""
-+ UNDEFINEDPREAMBLE=""
-+ UNDEFINEDCODE=""
-+ ;;
- *)
- if test x$build = x$host; then
- export_sym_check="objdump${exeext} -T"
-@@ -29939,23 +29947,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
-@@ -14554,6 +14554,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
-@@ -14576,6 +14579,11 @@
- export_sym_check=
- fi
- ;;
-+ *-*-mingw*|*-*-cygwin*|*-*-msys*)
-+ PICFLAG=""
-+ UNDEFINEDPREAMBLE=""
-+ UNDEFINEDCODE=""
-+ ;;
- *)
- if test x$build = x$host; then
- export_sym_check="objdump${exeext} -T"
-@@ -14688,23 +14696,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/8.1.0/0003-gcc-plugin-POSIX-include-sys-select-h.patch b/packages/gcc/8.1.0/0003-gcc-plugin-POSIX-include-sys-select-h.patch
deleted file mode 100644
index 5f9a07a..0000000
--- a/packages/gcc/8.1.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/8.1.0/0004-arm-softfloat-libgcc.patch b/packages/gcc/8.1.0/0004-arm-softfloat-libgcc.patch
deleted file mode 100644
index d980036..0000000
--- a/packages/gcc/8.1.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/8.1.0/0005-fix-m68k-uclinux.patch b/packages/gcc/8.1.0/0005-fix-m68k-uclinux.patch
deleted file mode 100644
index 02b53bd..0000000
--- a/packages/gcc/8.1.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
-@@ -847,7 +847,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/8.1.0/0006-libgfortran-missing-include.patch b/packages/gcc/8.1.0/0006-libgfortran-missing-include.patch
deleted file mode 100644
index 701e7b4..0000000
--- a/packages/gcc/8.1.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
-@@ -25,6 +25,7 @@
- #include "io.h"
- #include "unix.h"
- #include <limits.h>
-+#include <stdlib.h>
-
- typedef enum
- { CLOSE_DELETE, CLOSE_KEEP, CLOSE_UNSPECIFIED }
diff --git a/packages/gcc/8.1.0/0007-nios2-bad-multilib-default.patch b/packages/gcc/8.1.0/0007-nios2-bad-multilib-default.patch
deleted file mode 100644
index 4acc491..0000000
--- a/packages/gcc/8.1.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/8.1.0/0008-libgcc-disable-split-stack-nothreads.patch b/packages/gcc/8.1.0/0008-libgcc-disable-split-stack-nothreads.patch
deleted file mode 100644
index df91a9f..0000000
--- a/packages/gcc/8.1.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/8.1.0/0009-bionic-ndk.patch b/packages/gcc/8.1.0/0009-bionic-ndk.patch
deleted file mode 100644
index 474dd8c..0000000
--- a/packages/gcc/8.1.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/8.1.0/0010-crystax.patch b/packages/gcc/8.1.0/0010-crystax.patch
deleted file mode 100644
index 1657cd4..0000000
--- a/packages/gcc/8.1.0/0010-crystax.patch
+++ /dev/null
@@ -1,523 +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(-)
-
---- a/gcc/config.gcc
-+++ b/gcc/config.gcc
-@@ -981,14 +981,18 @@
- 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"
-+ 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-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
-@@ -2128,6 +2132,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
-@@ -1840,10 +1840,11 @@
-
- #define CASE_VECTOR_PC_RELATIVE (TARGET_THUMB2 \
- || (TARGET_THUMB1 \
-+ && !inline_thumb1_jump_table \
- && (optimize_size || flag_pic)))
-
- #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
-@@ -8640,7 +8640,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
-@@ -202,6 +202,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
-@@ -102,11 +102,16 @@
- #define CC1_SPEC \
- LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC " " ASAN_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 %{!mno-sse2avx:%{mavx:-msse2avx}} %{msse2avx:%{!mavx:-msse2avx}}"
-+ "--32 %{!mno-sse2avx:%{mavx:-msse2avx}} %{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
-@@ -30,7 +30,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
-@@ -38,15 +38,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
-@@ -35,7 +35,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
-@@ -78478,6 +78478,18 @@
- /* end confdefs.h. */
- #include <sys/syscall.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
-@@ -1102,7 +1116,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
- {
- __builtin_memcpy(__to, __lo, __hi - __lo);
- return __hi;
-@@ -1163,7 +1177,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/8.1.0/0011-crystax.patch b/packages/gcc/8.1.0/0011-crystax.patch
deleted file mode 100644
index f1f9eb1..0000000
--- a/packages/gcc/8.1.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/8.1.0/0012-crystax.patch b/packages/gcc/8.1.0/0012-crystax.patch
deleted file mode 100644
index 2bf6cc7..0000000
--- a/packages/gcc/8.1.0/0012-crystax.patch
+++ /dev/null
@@ -1,293 +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/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
-@@ -2219,6 +2219,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
-@@ -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)
-+#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
-@@ -133,8 +133,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
-
- #undef LINK_GCC_C_SEQUENCE_SPEC
- #define LINK_GCC_C_SEQUENCE_SPEC \
---- 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/rs6000/sysv4.h
-+++ b/gcc/config/rs6000/sysv4.h
-@@ -816,7 +816,11 @@
- -dynamic-linker " GNU_USER_DYNAMIC_LINKER "}}"
-
- #if defined(HAVE_LD_EH_FRAME_HDR)
--# define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr} "
-+# ifdef USE_EH_FRAME_HDR_FOR_STATIC
-+# define LINK_EH_SPEC "--eh-frame-hdr "
-+# else
-+# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
-+# endif
- #endif
-
- #define CPP_OS_LINUX_SPEC "-D__unix__ -D__gnu_linux__ -D__linux__ \
---- a/gcc/config/sol2.h
-+++ b/gcc/config/sol2.h
-@@ -400,7 +400,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
-@@ -943,6 +943,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
-@@ -1684,6 +1685,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
-@@ -28319,6 +28323,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
-@@ -5140,6 +5140,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/8.1.0/0013-crystax.patch b/packages/gcc/8.1.0/0013-crystax.patch
deleted file mode 100644
index b520968..0000000
--- a/packages/gcc/8.1.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
-@@ -15913,6 +15913,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/8.1.0/0014-crystax.patch b/packages/gcc/8.1.0/0014-crystax.patch
deleted file mode 100644
index 8f2eb43..0000000
--- a/packages/gcc/8.1.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/8.1.0/0015-crystax.patch b/packages/gcc/8.1.0/0015-crystax.patch
deleted file mode 100644
index 05d67f9..0000000
--- a/packages/gcc/8.1.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
-@@ -22608,9 +22608,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/8.1.0/0016-crystax.patch b/packages/gcc/8.1.0/0016-crystax.patch
deleted file mode 100644
index 8c21a1c..0000000
--- a/packages/gcc/8.1.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/8.1.0/0017-crystax.patch b/packages/gcc/8.1.0/0017-crystax.patch
deleted file mode 100644
index ccb81fd..0000000
--- a/packages/gcc/8.1.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
-@@ -62,3 +62,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/8.1.0/0018-ARC-Reimplement-return-padding-operation-for-ARC700.patch b/packages/gcc/8.1.0/0018-ARC-Reimplement-return-padding-operation-for-ARC700.patch
deleted file mode 100644
index e876ed4..0000000
--- a/packages/gcc/8.1.0/0018-ARC-Reimplement-return-padding-operation-for-ARC700.patch
+++ /dev/null
@@ -1,402 +0,0 @@
-From cc11539ff23bd2c3136f826a18d8010ac34dc518 Mon Sep 17 00:00:00 2001
-From: Claudiu Zissulescu <claziss@synopsys.com>
-Date: Fri, 24 Mar 2017 11:55:54 +0100
-Subject: [PATCH] [ARC] Reimplement return padding operation for ARC700.
-
-For ARC700, adding padding if necessary to avoid a mispredict. A
-return could happen immediately after the function start. A
-call/return and return/return must be 6 bytes apart to avoid
-mispredict.
-
-The old implementation was doing this operation very late in the
-compilation process, and the additional nop instructions and/or
-forcing some other instruction to take their long form was not taken
-into account when generating brcc instructions. Thus, wrong code could
-be generated.
-
-gcc/
-2017-03-24 Claudiu Zissulescu <claziss@synopsys.com>
-
- * config/arc/arc-protos.h (arc_pad_return): Remove.
- * config/arc/arc.c (machine_function): Remove force_short_suffix
- and size_reason.
- (arc_print_operand): Adjust printing of '&'.
- (arc_verify_short): Remove conditional printing of short suffix.
- (arc_final_prescan_insn): Remove reference to size_reason.
- (pad_return): New function.
- (arc_reorg): Call pad_return.
- (arc_pad_return): Remove.
- (arc_init_machine_status): Remove reference to force_short_suffix.
- * config/arc/arc.md (vunspec): Add VUNSPEC_ARC_BLOCKAGE.
- (attr length): When attribute iscompact is true force to 2
- regardless; in the case of maybe check if we want to force the
- instruction to have 4 bytes length.
- (nopv): Change it to generate 4 byte long nop as well.
- (blockage): New pattern.
- (simple_return): Remove call to arc_pad_return.
- (p_return_i): Likewise.
-
-gcc/testsuite/
-2017-03-24 Claudiu Zissulescu <claziss@synopsys.com>
-
- * gcc.target/arc/pr9001107555.c: New file.
----
- gcc/config/arc/arc-protos.h | 1 -
- gcc/config/arc/arc.c | 156 +++++++++-----------
- gcc/config/arc/arc.md | 26 +++-
- gcc/testsuite/gcc.target/arc/pr9001107555.c | 38 +++++
- 4 files changed, 128 insertions(+), 93 deletions(-)
- create mode 100644 gcc/testsuite/gcc.target/arc/pr9001107555.c
-
-diff --git a/gcc/config/arc/arc-protos.h b/gcc/config/arc/arc-protos.h
-index 0ba6871628ad..cb5909564eac 100644
---- a/gcc/config/arc/arc-protos.h
-+++ b/gcc/config/arc/arc-protos.h
-@@ -93,7 +93,6 @@ extern void arc_clear_unalign (void);
- extern void arc_toggle_unalign (void);
- extern void split_addsi (rtx *);
- extern void split_subsi (rtx *);
--extern void arc_pad_return (void);
- extern void arc_split_move (rtx *);
- extern const char *arc_short_long (rtx_insn *insn, const char *, const char *);
- extern rtx arc_regno_use_in (unsigned int, rtx);
-diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
-index 2e6fbcb70c6c..79c2d72b4cb3 100644
---- a/gcc/config/arc/arc.c
-+++ b/gcc/config/arc/arc.c
-@@ -2564,8 +2564,6 @@ typedef struct GTY (()) machine_function
- struct arc_frame_info frame_info;
- /* To keep track of unalignment caused by short insns. */
- int unalign;
-- int force_short_suffix; /* Used when disgorging return delay slot insns. */
-- const char *size_reason;
- struct arc_ccfsm ccfsm_current;
- /* Map from uid to ccfsm state during branch shortening. */
- rtx ccfsm_current_insn;
-@@ -4220,7 +4218,7 @@ arc_print_operand (FILE *file, rtx x, int code)
- }
- break;
- case '&':
-- if (TARGET_ANNOTATE_ALIGN && cfun->machine->size_reason)
-+ if (TARGET_ANNOTATE_ALIGN)
- fprintf (file, "; unalign: %d", cfun->machine->unalign);
- return;
- case '+':
-@@ -4906,7 +4904,6 @@ static int
- arc_verify_short (rtx_insn *insn, int, int check_attr)
- {
- enum attr_iscompact iscompact;
-- struct machine_function *machine;
-
- if (check_attr > 0)
- {
-@@ -4914,10 +4911,6 @@ arc_verify_short (rtx_insn *insn, int, int check_attr)
- if (iscompact == ISCOMPACT_FALSE)
- return 0;
- }
-- machine = cfun->machine;
--
-- if (machine->force_short_suffix >= 0)
-- return machine->force_short_suffix;
-
- return (get_attr_length (insn) & 2) != 0;
- }
-@@ -4956,8 +4949,6 @@ arc_final_prescan_insn (rtx_insn *insn, rtx *opvec ATTRIBUTE_UNUSED,
- cfun->machine->prescan_initialized = 1;
- }
- arc_ccfsm_advance (insn, &arc_ccfsm_current);
--
-- cfun->machine->size_reason = 0;
- }
-
- /* Given FROM and TO register numbers, say whether this elimination is allowed.
-@@ -7599,6 +7590,76 @@ jli_call_scan (void)
- }
- }
-
-+/* Add padding if necessary to avoid a mispredict. A return could
-+ happen immediately after the function start. A call/return and
-+ return/return must be 6 bytes apart to avoid mispredict. */
-+
-+static void
-+pad_return (void)
-+{
-+ rtx_insn *insn;
-+ long offset;
-+
-+ if (!TARGET_PAD_RETURN)
-+ return;
-+
-+ for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
-+ {
-+ rtx_insn *prev0 = prev_active_insn (insn);
-+ bool wantlong = false;
-+
-+ if (!INSN_P (insn) || GET_CODE (PATTERN (insn)) != SIMPLE_RETURN)
-+ continue;
-+
-+ if (!prev0)
-+ {
-+ prev0 = emit_insn_before (gen_nopv (), insn);
-+ /* REG_SAVE_NOTE is used by Haifa scheduler, we are in reorg
-+ so it is safe to reuse it for forcing a particular length
-+ for an instruction. */
-+ add_reg_note (prev0, REG_SAVE_NOTE, GEN_INT (1));
-+ emit_insn_before (gen_nopv (), insn);
-+ continue;
-+ }
-+ offset = get_attr_length (prev0);
-+
-+ if (get_attr_length (prev0) == 2
-+ && get_attr_iscompact (prev0) != ISCOMPACT_TRUE)
-+ {
-+ /* Force long version of the insn. */
-+ wantlong = true;
-+ offset += 2;
-+ }
-+
-+ rtx_insn *prev = prev_active_insn (prev0);
-+ if (prev)
-+ offset += get_attr_length (prev);
-+
-+ prev = prev_active_insn (prev);
-+ if (prev)
-+ offset += get_attr_length (prev);
-+
-+ switch (offset)
-+ {
-+ case 2:
-+ prev = emit_insn_before (gen_nopv (), insn);
-+ add_reg_note (prev, REG_SAVE_NOTE, GEN_INT (1));
-+ break;
-+ case 4:
-+ emit_insn_before (gen_nopv (), insn);
-+ break;
-+ default:
-+ continue;
-+ }
-+
-+ if (wantlong)
-+ add_reg_note (prev0, REG_SAVE_NOTE, GEN_INT (1));
-+
-+ /* Emit a blockage to avoid delay slot scheduling. */
-+ emit_insn_before (gen_blockage(), insn);
-+ }
-+}
-+
- static int arc_reorg_in_progress = 0;
-
- /* ARC's machince specific reorg function. */
-@@ -7624,6 +7685,7 @@ arc_reorg (void)
-
- workaround_arc_anomaly ();
- jli_call_scan ();
-+ pad_return ();
-
- /* FIXME: should anticipate ccfsm action, generate special patterns for
- to-be-deleted branches that have no delay slot and have at least the
-@@ -9332,79 +9394,6 @@ arc_branch_size_unknown_p (void)
- return !optimize_size && arc_reorg_in_progress;
- }
-
--/* We are about to output a return insn. Add padding if necessary to avoid
-- a mispredict. A return could happen immediately after the function
-- start, but after a call we know that there will be at least a blink
-- restore. */
--
--void
--arc_pad_return (void)
--{
-- rtx_insn *insn = current_output_insn;
-- rtx_insn *prev = prev_active_insn (insn);
-- int want_long;
--
-- if (!prev)
-- {
-- fputs ("\tnop_s\n", asm_out_file);
-- cfun->machine->unalign ^= 2;
-- want_long = 1;
-- }
-- /* If PREV is a sequence, we know it must be a branch / jump or a tailcall,
-- because after a call, we'd have to restore blink first. */
-- else if (GET_CODE (PATTERN (prev)) == SEQUENCE)
-- return;
-- else
-- {
-- want_long = (get_attr_length (prev) == 2);
-- prev = prev_active_insn (prev);
-- }
-- if (!prev
-- || ((NONJUMP_INSN_P (prev) && GET_CODE (PATTERN (prev)) == SEQUENCE)
-- ? CALL_ATTR (as_a <rtx_sequence *> (PATTERN (prev))->insn (0),
-- NON_SIBCALL)
-- : CALL_ATTR (prev, NON_SIBCALL)))
-- {
-- if (want_long)
-- cfun->machine->size_reason
-- = "call/return and return/return must be 6 bytes apart to avoid mispredict";
-- else if (TARGET_UNALIGN_BRANCH && cfun->machine->unalign)
-- {
-- cfun->machine->size_reason
-- = "Long unaligned jump avoids non-delay slot penalty";
-- want_long = 1;
-- }
-- /* Disgorge delay insn, if there is any, and it may be moved. */
-- if (final_sequence
-- /* ??? Annulled would be OK if we can and do conditionalize
-- the delay slot insn accordingly. */
-- && !INSN_ANNULLED_BRANCH_P (insn)
-- && (get_attr_cond (insn) != COND_USE
-- || !reg_set_p (gen_rtx_REG (CCmode, CC_REG),
-- XVECEXP (final_sequence, 0, 1))))
-- {
-- prev = as_a <rtx_insn *> (XVECEXP (final_sequence, 0, 1));
-- gcc_assert (!prev_real_insn (insn)
-- || !arc_hazard (prev_real_insn (insn), prev));
-- cfun->machine->force_short_suffix = !want_long;
-- rtx save_pred = current_insn_predicate;
-- final_scan_insn (prev, asm_out_file, optimize, 1, NULL);
-- cfun->machine->force_short_suffix = -1;
-- prev->set_deleted ();
-- current_output_insn = insn;
-- current_insn_predicate = save_pred;
-- }
-- else if (want_long)
-- fputs ("\tnop\n", asm_out_file);
-- else
-- {
-- fputs ("\tnop_s\n", asm_out_file);
-- cfun->machine->unalign ^= 2;
-- }
-- }
-- return;
--}
--
- /* The usual; we set up our machine_function data. */
-
- static struct machine_function *
-@@ -9413,7 +9402,6 @@ arc_init_machine_status (void)
- struct machine_function *machine;
- machine = ggc_cleared_alloc<machine_function> ();
- machine->fn_type = ARC_FUNCTION_UNKNOWN;
-- machine->force_short_suffix = -1;
-
- return machine;
- }
-diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md
-index d19e99daca72..fcc6e0692dd1 100644
---- a/gcc/config/arc/arc.md
-+++ b/gcc/config/arc/arc.md
-@@ -161,6 +161,7 @@
- VUNSPEC_ARC_CAS
- VUNSPEC_ARC_SC
- VUNSPEC_ARC_LL
-+ VUNSPEC_ARC_BLOCKAGE
- ])
-
- (define_constants
-@@ -384,13 +385,18 @@
- ;; and insn lengths: insns with shimm values cannot be conditionally executed.
- (define_attr "length" ""
- (cond
-- [(eq_attr "iscompact" "true,maybe")
-+ [(eq_attr "iscompact" "true")
-+ (const_int 2)
-+
-+ (eq_attr "iscompact" "maybe")
- (cond
- [(eq_attr "type" "sfunc")
- (cond [(match_test "GET_CODE (PATTERN (insn)) == COND_EXEC")
- (const_int 12)]
- (const_int 10))
-- (match_test "GET_CODE (PATTERN (insn)) == COND_EXEC") (const_int 4)]
-+ (match_test "GET_CODE (PATTERN (insn)) == COND_EXEC") (const_int 4)
-+ (match_test "find_reg_note (insn, REG_SAVE_NOTE, GEN_INT (1))")
-+ (const_int 4)]
- (const_int 2))
-
- (eq_attr "iscompact" "true_limm")
-@@ -4438,8 +4444,16 @@
- ""
- "nop%?"
- [(set_attr "type" "misc")
-- (set_attr "iscompact" "true")
-- (set_attr "length" "2")])
-+ (set_attr "iscompact" "maybe")
-+ (set_attr "length" "*")])
-+
-+(define_insn "blockage"
-+ [(unspec_volatile [(const_int 0)] VUNSPEC_ARC_BLOCKAGE)]
-+ ""
-+ ""
-+ [(set_attr "length" "0")
-+ (set_attr "type" "block")]
-+)
-
- ;; Split up troublesome insns for better scheduling.
-
-@@ -4984,8 +4998,6 @@
- {
- return \"rtie\";
- }
-- if (TARGET_PAD_RETURN)
-- arc_pad_return ();
- output_asm_insn (\"j%!%* [%0]%&\", &reg);
- return \"\";
- }
-@@ -5029,8 +5041,6 @@
- arc_return_address_register (arc_compute_function_type
- (cfun)));
-
-- if (TARGET_PAD_RETURN)
-- arc_pad_return ();
- output_asm_insn (\"j%d0%!%# [%1]%&\", xop);
- /* record the condition in case there is a delay insn. */
- arc_ccfsm_record_condition (xop[0], false, insn, 0);
-diff --git a/gcc/testsuite/gcc.target/arc/pr9001107555.c b/gcc/testsuite/gcc.target/arc/pr9001107555.c
-new file mode 100644
-index 000000000000..134426d33d93
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/arc/pr9001107555.c
-@@ -0,0 +1,38 @@
-+/* { dg-do assemble } *
-+/* { dg-skip-if "" { ! { clmcpu } } } */
-+/* { dg-options "-O3 -w -funroll-loops -mno-sdata -mcpu=arc700" } */
-+
-+typedef a __attribute__((__mode__(__DI__)));
-+typedef struct c c;
-+struct b {
-+ int d;
-+ c *e
-+};
-+enum { f };
-+typedef struct {
-+ a g;
-+ a h;
-+ int i
-+} j;
-+struct c {
-+ int count;
-+ int current
-+};
-+k;
-+l(struct b *demux, __builtin_va_list args) {
-+ c m = *demux->e;
-+ j *n;
-+ switch (k)
-+ case f: {
-+ a o = __builtin_va_arg(args, a);
-+ m.current = 0;
-+ while (m.current < m.count) {
-+ if (n[m.current].h > o) {
-+ p(demux->d, 4 + 128LL * n[m.current].i);
-+ break;
-+ }
-+ m.current++;
-+ }
-+ return 0;
-+ }
-+}
---
-2.17.0
-
diff --git a/packages/gcc/8.1.0/0018-xscale.patch b/packages/gcc/8.1.0/0018-xscale.patch
deleted file mode 100644
index 62654c2..0000000
--- a/packages/gcc/8.1.0/0018-xscale.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-commit f18d79595db4ae88dbd40d73bb2d1ea191a756a1
-Author: rearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
-Date: Mon Jun 4 08:41:45 2018 +0000
-
- [arm] PR target/86003 build failures with --with-cpu=xscale
-
- The XScale cpu configuration in GCC has always been somewhat
- non-conforming. Although XScale isn't an architecture (it's simply an
- implementation of ARMv5te), we do by tradition emit a specific
- pre-define for it. We achieve this effect by adding an additional
- feature bit to the xscale CPU definition that isn't part of the base
- architecture.
-
- When I restructured the options last year I overlooked this oddity and
- the result, of course, is that this configuration now fails to build
- as intended.
-
- What happens is that the driver (correctly) constructs an architecture
- for the xscale cpu name (as armv5te) and passes it in addition to the
- CPU name. The backend code, on finding both a cpu and an architecture
- specifies attempts to correlate the two and finds a difference due to
- the additional feature bit and reports an inconsistency (fatally if
- -werror is specified).
-
- I think the best fix to this is to treat the xscale feature bit using
- the same mechanism that we use for other 'quirks' in CPU
- implementations and simply filter it out before comparing the
- capabilities. It has the additional benefit that it's also the
- simplest fix.
-
- PR target/86003
- * config/arm/arm-cpus.in (ALL_QUIRKS): Add xscale feature to the list
- of bits to ignore when comparing architectures.
-
-
- git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261140 138bc75d-0d04-0410-961f-82ee72b054a4
-
-diff --git a/gcc/config/arm/arm-cpus.in b/gcc/config/arm/arm-cpus.in
-index aec73b5cae0..661bf1a573c 100644
---- a/gcc/config/arm/arm-cpus.in
-+++ b/gcc/config/arm/arm-cpus.in
-@@ -254,7 +254,9 @@ define fgroup DOTPROD NEON dotprod
-
- # List of all quirk bits to strip out when comparing CPU features with
- # architectures.
--define fgroup ALL_QUIRKS quirk_no_volatile_ce quirk_armv6kz quirk_cm3_ldrd
-+# xscale isn't really a 'quirk', but it isn't an architecture either and we
-+# need to ignore it for matching purposes.
-+define fgroup ALL_QUIRKS quirk_no_volatile_ce quirk_armv6kz quirk_cm3_ldrd xscale
-
- # Architecture entries
- # format:
diff --git a/packages/gcc/8.1.0/0019-ARC-Add-multilib-support-for-linux-targets.patch b/packages/gcc/8.1.0/0019-ARC-Add-multilib-support-for-linux-targets.patch
deleted file mode 100644
index 6151067..0000000
--- a/packages/gcc/8.1.0/0019-ARC-Add-multilib-support-for-linux-targets.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-From 0eacfbcb2bf1834294f468a2bb41fe5d5e8d3883 Mon Sep 17 00:00:00 2001
-From: claziss <claziss@138bc75d-0d04-0410-961f-82ee72b054a4>
-Date: Mon, 21 May 2018 09:56:57 +0000
-Subject: [PATCH] [ARC] Add multilib support for linux targets
-
-We used to build baremetal (AKA Elf32) multilibbed toolchains for years
-now but never made that for Linux targets since there were problems with
-uClibc n multilib setup. Now with help of Crosstool-NG it is finally
-possible to create uClibc-based multilibbed toolchains and so we add
-relevant CPUs for multilib in case of configuration for "arc*-*-linux*".
-
-This will be essentially useful for glibc-based multilibbbed toolchains
-in the future.
-
-gcc/
-2018-05-16 Alexey Brodkin <abrodkin@synopsys.com>
-
- * config.gcc: Add arc/t-multilib-linux to tmake_file for
- arc*-*-linux*.
- * config/arc/t-multilib-linux: Specify MULTILIB_OPTIONS and
- MULTILIB_DIRNAMES
-
-git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260434 138bc75d-0d04-0410-961f-82ee72b054a4
----
- gcc/config.gcc | 2 +-
- gcc/config/arc/t-multilib-linux | 25 +++++++++++++++++++++++++
- 2 files changed, 26 insertions(+), 1 deletion(-)
- create mode 100644 gcc/config/arc/t-multilib-linux
-
-diff --git a/gcc/config.gcc b/gcc/config.gcc
-index 96ae6a88a0db..d73e2cbc99a1 100644
---- a/gcc/config.gcc
-+++ b/gcc/config.gcc
-@@ -1061,7 +1061,7 @@ arc*-*-elf*)
- ;;
- arc*-*-linux*)
- tm_file="arc/arc-arch.h dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h arc/linux.h ${tm_file}"
-- tmake_file="${tmake_file} arc/t-arc"
-+ tmake_file="${tmake_file} arc/t-multilib-linux arc/t-arc"
- extra_gcc_objs="driver-arc.o"
- if test "x$with_cpu" != x; then
- tm_defines="${tm_defines} TARGET_CPU_BUILD=PROCESSOR_$with_cpu"
-diff --git a/gcc/config/arc/t-multilib-linux b/gcc/config/arc/t-multilib-linux
-new file mode 100644
-index 000000000000..f357cfc3f926
---- /dev/null
-+++ b/gcc/config/arc/t-multilib-linux
-@@ -0,0 +1,25 @@
-+# Copyright (C) 2018 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/>.
-+
-+MULTILIB_OPTIONS = mcpu=hs/mcpu=archs/mcpu=hs38/mcpu=hs38_linux/mcpu=arc700/mcpu=nps400
-+
-+MULTILIB_DIRNAMES = hs archs hs38 hs38_linux arc700 nps400
-+
-+# Aliases:
-+MULTILIB_MATCHES += mcpu?arc700=mA7
-+MULTILIB_MATCHES += mcpu?arc700=mARC700
---
-2.17.0
-
diff --git a/packages/gcc/8.1.0/0020-ARC-Don-t-mention-not-yet-supported-hs4xy-CPUs.patch b/packages/gcc/8.1.0/0020-ARC-Don-t-mention-not-yet-supported-hs4xy-CPUs.patch
deleted file mode 100644
index 8c8af88..0000000
--- a/packages/gcc/8.1.0/0020-ARC-Don-t-mention-not-yet-supported-hs4xy-CPUs.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From f191ab7e686b13f77ccb8de52674f7777dbaa0fc Mon Sep 17 00:00:00 2001
-From: Alexey Brodkin <abrodkin@synopsys.com>
-Date: Wed, 16 May 2018 15:06:53 +0300
-Subject: [PATCH] ARC: Don't mention not yet supported hs4xy CPUs
-
-hs4x and hs4xd were mistakenly mentioned in MULTILIB_OPTION/DIRNAMES
-before real support of those CPUs was accepted in upstream.
-
-That breaks multilib toolchains building becase we're trying to compile
-for not yet known CPU.
-
-Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
----
- gcc/config/arc/t-multilib | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/gcc/config/arc/t-multilib b/gcc/config/arc/t-multilib
-index d9ab0ca1da3c..08add5492f0b 100644
---- a/gcc/config/arc/t-multilib
-+++ b/gcc/config/arc/t-multilib
-@@ -21,9 +21,9 @@
- # along with GCC; see the file COPYING3. If not see
- # <http://www.gnu.org/licenses/>.
-
--MULTILIB_OPTIONS = mcpu=em/mcpu=em_mini/mcpu=arcem/mcpu=em4/mcpu=em4_dmips/mcpu=em4_fpus/mcpu=em4_fpuda/mcpu=quarkse_em/mcpu=hs/mcpu=archs/mcpu=hs34/mcpu=hs38/mcpu=hs38_linux/mcpu=hs4x/mcpu=hs4xd/mcpu=arc600/mcpu=arc600_norm/mcpu=arc600_mul64/mcpu=arc600_mul32x16/mcpu=arc601/mcpu=arc601_norm/mcpu=arc601_mul64/mcpu=arc601_mul32x16/mcpu=arc700/mcpu=nps400
-+MULTILIB_OPTIONS = mcpu=em/mcpu=em_mini/mcpu=arcem/mcpu=em4/mcpu=em4_dmips/mcpu=em4_fpus/mcpu=em4_fpuda/mcpu=quarkse_em/mcpu=hs/mcpu=archs/mcpu=hs34/mcpu=hs38/mcpu=hs38_linux/mcpu=arc600/mcpu=arc600_norm/mcpu=arc600_mul64/mcpu=arc600_mul32x16/mcpu=arc601/mcpu=arc601_norm/mcpu=arc601_mul64/mcpu=arc601_mul32x16/mcpu=arc700/mcpu=nps400
-
--MULTILIB_DIRNAMES = em em_mini arcem em4 em4_dmips em4_fpus em4_fpuda quarkse_em hs archs hs34 hs38 hs38_linux hs4x hs4xd arc600 arc600_norm arc600_mul64 arc600_mul32x16 arc601 arc601_norm arc601_mul64 arc601_mul32x16 arc700 nps400
-+MULTILIB_DIRNAMES = em em_mini arcem em4 em4_dmips em4_fpus em4_fpuda quarkse_em hs archs hs34 hs38 hs38_linux arc600 arc600_norm arc600_mul64 arc600_mul32x16 arc601 arc601_norm arc601_mul64 arc601_mul32x16 arc700 nps400
-
- # Aliases:
- MULTILIB_MATCHES = mcpu?arc600=mcpu?ARC600
---
-2.17.0
-
diff --git a/packages/gcc/8.1.0/0021-xtensa-fix-PR-target-65416.patch b/packages/gcc/8.1.0/0021-xtensa-fix-PR-target-65416.patch
deleted file mode 100644
index 252d784..0000000
--- a/packages/gcc/8.1.0/0021-xtensa-fix-PR-target-65416.patch
+++ /dev/null
@@ -1,101 +0,0 @@
-From 5a5636f22679a69c60519e14a0d3dae908ea1cca Mon Sep 17 00:00:00 2001
-From: jcmvbkbc <jcmvbkbc@138bc75d-0d04-0410-961f-82ee72b054a4>
-Date: Tue, 19 Jun 2018 18:26:07 +0000
-Subject: [PATCH] xtensa: fix PR target/65416
-
-The issue is caused by reordering of stack pointer update after stack
-space allocation with instructions that write to the allocated stack
-space. In windowed ABI register spill area for the previous call frame
-is located just below the stack pointer and may be reloaded back into
-the register file on movsp.
-Implement allocate_stack pattern for windowed ABI configuration and
-insert an instruction that prevents reordering of frame memory access
-and stack pointer update.
-
-gcc/
-2018-06-19 Max Filippov <jcmvbkbc@gmail.com>
-
- * config/xtensa/xtensa.md (UNSPEC_FRAME_BLOCKAGE): New unspec
- constant.
- (allocate_stack, frame_blockage, *frame_blockage): New patterns.
-
-git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261755 138bc75d-0d04-0410-961f-82ee72b054a4
-Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
----
- gcc/config/xtensa/xtensa.md | 46 +++++++++++++++++++++++++++++++++++++++++++++
- 1 file changed, 46 insertions(+)
-
-diff --git a/gcc/config/xtensa/xtensa.md b/gcc/config/xtensa/xtensa.md
-index 84967dbedc08..209f839cfb0f 100644
---- a/gcc/config/xtensa/xtensa.md
-+++ b/gcc/config/xtensa/xtensa.md
-@@ -38,6 +38,7 @@
- (UNSPEC_MEMW 11)
- (UNSPEC_LSETUP_START 12)
- (UNSPEC_LSETUP_END 13)
-+ (UNSPEC_FRAME_BLOCKAGE 14)
-
- (UNSPECV_SET_FP 1)
- (UNSPECV_ENTRY 2)
-@@ -1676,6 +1677,32 @@
-
- ;; Miscellaneous instructions.
-
-+;; In windowed ABI stack pointer adjustment must happen before any access
-+;; to the space allocated on stack is allowed, otherwise register spill
-+;; area may be clobbered. That's what frame blockage is supposed to enforce.
-+
-+(define_expand "allocate_stack"
-+ [(set (match_operand 0 "nonimmed_operand")
-+ (minus (reg A1_REG) (match_operand 1 "add_operand")))
-+ (set (reg A1_REG)
-+ (minus (reg A1_REG) (match_dup 1)))]
-+ "TARGET_WINDOWED_ABI"
-+{
-+ if (CONST_INT_P (operands[1]))
-+ {
-+ rtx neg_op0 = GEN_INT (-INTVAL (operands[1]));
-+ emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx, neg_op0));
-+ }
-+ else
-+ {
-+ emit_insn (gen_subsi3 (stack_pointer_rtx, stack_pointer_rtx,
-+ operands[1]));
-+ }
-+ emit_move_insn (operands[0], virtual_stack_dynamic_rtx);
-+ emit_insn (gen_frame_blockage ());
-+ DONE;
-+})
-+
- (define_expand "prologue"
- [(const_int 0)]
- ""
-@@ -1767,6 +1794,25 @@
- [(set_attr "length" "0")
- (set_attr "type" "nop")])
-
-+;; Do not schedule instructions accessing memory before this point.
-+
-+(define_expand "frame_blockage"
-+ [(set (match_dup 0)
-+ (unspec:BLK [(match_dup 1)] UNSPEC_FRAME_BLOCKAGE))]
-+ ""
-+{
-+ operands[0] = gen_rtx_MEM (BLKmode, gen_rtx_SCRATCH (Pmode));
-+ MEM_VOLATILE_P (operands[0]) = 1;
-+ operands[1] = stack_pointer_rtx;
-+})
-+
-+(define_insn "*frame_blockage"
-+ [(set (match_operand:BLK 0 "" "")
-+ (unspec:BLK [(match_operand:SI 1 "" "")] UNSPEC_FRAME_BLOCKAGE))]
-+ ""
-+ ""
-+ [(set_attr "length" "0")])
-+
- (define_insn "trap"
- [(trap_if (const_int 1) (const_int 0))]
- ""
---
-2.11.0
-
diff --git a/packages/gcc/8.1.0/chksum b/packages/gcc/8.1.0/chksum
deleted file mode 100644
index 0fc6e69..0000000
--- a/packages/gcc/8.1.0/chksum
+++ /dev/null
@@ -1,8 +0,0 @@
-md5 gcc-8.1.0.tar.xz 65f7c65818dc540b3437605026d329fc
-sha1 gcc-8.1.0.tar.xz b34031ba9ff3e248b2c62de0825e49a1e0e01998
-sha256 gcc-8.1.0.tar.xz 1d1866f992626e61349a1ccd0b8d5253816222cdc13390dcfaa74b093aa2b153
-sha512 gcc-8.1.0.tar.xz c96246f34a7aeb404c4525b754dc7f7708a18e06271aadb2b32fef00e6e0940f584e52430bfe2ab01e699c93e3cb418adc113d2622fa826facbec0ec8ce3eb2c
-md5 gcc-8.1.0.tar.gz 6a1fabd167fe98c11857181c210fc743
-sha1 gcc-8.1.0.tar.gz f6ec34a732f7c384a54afcb610a4861ccd6bde96
-sha256 gcc-8.1.0.tar.gz af300723841062db6ae24e38e61aaf4fbf3f6e5d9fd3bf60ebbdbf95db4e9f09
-sha512 gcc-8.1.0.tar.gz 4655d31c729e82888a5ee18dd99ef4573a6d4434885e358c9231c795373f16016ad89db3204e297add81995974aff8eb5de82efa1ad9f56827e67c9994a6dee1
diff --git a/packages/gcc/8.1.0/version.desc b/packages/gcc/8.1.0/version.desc
deleted file mode 100644
index e69de29..0000000
--- a/packages/gcc/8.1.0/version.desc
+++ /dev/null