Update to GCC 9.x to latest release 9.3.0

Forward ported patches from GCC 9.2.0 to 9.3.0, refreshed to match
current sources.

Patch 0010-crystax.patch did not apply clean and had minor adjustments
to fit new GCC 9.3.0 release.

Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
This commit is contained in:
Hans-Christian Noren Egtvedt 2020-03-13 10:31:08 +01:00
parent c0f2d7016b
commit b0c0005f8a
22 changed files with 25 additions and 23 deletions

View File

@ -1,8 +0,0 @@
md5 gcc-9.2.0.tar.xz 3818ad8600447f05349098232c2ddc78
sha1 gcc-9.2.0.tar.xz 306d27c3465fa36862c206738d06d65fff5c3645
sha256 gcc-9.2.0.tar.xz ea6ef08f121239da5695f76c9b33637a118dcf63e24164422231917fa61fb206
sha512 gcc-9.2.0.tar.xz a12dff52af876aee0fd89a8d09cdc455f35ec46845e154023202392adc164848faf8ee881b59b681b696e27c69fd143a214014db4214db62f9891a1c8365c040
md5 gcc-9.2.0.tar.gz e03739b042a14376d727ddcfd05a9bc3
sha1 gcc-9.2.0.tar.gz 256be3760f6aca3eaa45083e25828ce0802e2010
sha256 gcc-9.2.0.tar.gz a931a750d6feadacbeecb321d73925cd5ebb6dfa7eff0802984af3aef63759f4
sha512 gcc-9.2.0.tar.gz 55fead9cac2374b18134c17a143fc9317f67be834589303d31a7c3a6878e6bef22a0590fda902a07cb60f802df035e67975a8ab6a641048e0baa89af439a46ca

View File

@ -53,7 +53,7 @@
if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
--- a/gcc/configure
+++ b/gcc/configure
@@ -29858,6 +29858,9 @@ fi
@@ -29862,6 +29862,9 @@ fi
pluginlibs=
plugin_check=yes
@ -63,7 +63,7 @@
case "${host}" in
*-*-mingw*)
# Since plugin support under MinGW is not as straightforward as on
@@ -29880,6 +29883,11 @@ fi
@@ -29884,6 +29887,11 @@ fi
export_sym_check=
fi
;;
@ -75,7 +75,7 @@
*)
if test x$build = x$host; then
export_sym_check="objdump${exeext} -T"
@@ -29992,23 +30000,23 @@ fi
@@ -29996,23 +30004,23 @@ fi
case "${host}" in
*-*-darwin*)
CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`

View File

@ -157,12 +157,14 @@ Date: Wed Jul 29 11:28:29 2015 +0300
#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
@@ -1856,10 +1856,11 @@ enum arm_auto_incmodes
@@ -1856,12 +1856,13 @@ enum arm_auto_incmodes
#define CASE_VECTOR_PC_RELATIVE ((TARGET_THUMB2 \
|| (TARGET_THUMB1 \
+ && !inline_thumb1_jump_table \
&& (optimize_size || flag_pic))) \
&& (!target_pure_code))
#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 \
@ -172,7 +174,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
: min >= -256 && max < 256 \
--- a/gcc/config/arm/arm.md
+++ b/gcc/config/arm/arm.md
@@ -8894,7 +8894,7 @@
@@ -8920,7 +8920,7 @@
(match_operand:SI 2 "const_int_operand" "") ; total range
(match_operand:SI 3 "" "") ; table label
(match_operand:SI 4 "" "")] ; Out of range label
@ -450,7 +452,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
#if ((defined(_LIBOBJC) || defined(_LIBOBJC_WEAK)) \
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -78742,6 +78742,18 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
@@ -78982,6 +78982,18 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
/* end confdefs.h. */
#include <sys/syscall.h>
int lk;

View File

@ -112,7 +112,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
--- a/gcc/configure
+++ b/gcc/configure
@@ -985,6 +985,7 @@ enable_fix_cortex_a53_835769
@@ -986,6 +986,7 @@ enable_fix_cortex_a53_835769
enable_fix_cortex_a53_843419
with_glibc_version
enable_gnu_unique_object
@ -120,7 +120,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
enable_linker_build_id
enable_libssp
enable_default_ssp
@@ -1736,6 +1737,9 @@ Optional Features:
@@ -1737,6 +1738,9 @@ Optional Features:
--enable-gnu-unique-object
enable the use of the @gnu_unique_object ELF
extension on glibc systems
@ -130,7 +130,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
--enable-linker-build-id
compiler will always pass --build-id to linker
--enable-libssp enable linking against libssp
@@ -28348,6 +28352,38 @@ if test x"$gcc_cv_ld_eh_frame_hdr" = xye
@@ -28349,6 +28353,38 @@ if test x"$gcc_cv_ld_eh_frame_hdr" = xye
$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h

View File

@ -12,7 +12,7 @@ Date: Thu Aug 20 19:11:07 2015 +0300
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -15618,6 +15618,7 @@ legitimate_pic_address_disp_p (rtx disp)
@@ -15635,6 +15635,7 @@ legitimate_pic_address_disp_p (rtx disp)
else if (!SYMBOL_REF_FAR_ADDR_P (op0)
&& (SYMBOL_REF_LOCAL_P (op0)
|| (HAVE_LD_PIE_COPYRELOC

View File

@ -15,7 +15,7 @@ Date: Mon Apr 14 21:05:51 2014 -0700
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -22781,9 +22781,13 @@ arm_print_operand (FILE *stream, rtx x,
@@ -22862,9 +22862,13 @@ arm_print_operand (FILE *stream, rtx x,
memsize = MEM_SIZE (x);
/* Only certain alignment specifiers are supported by the hardware. */

8
packages/gcc/9.3.0/chksum vendored Normal file
View File

@ -0,0 +1,8 @@
md5 gcc-9.3.0.tar.xz d00a144b771ddeb021b61aa205b7e345
sha1 gcc-9.3.0.tar.xz b746688bf045a316fc92c3528138ad10d0822b6b
sha256 gcc-9.3.0.tar.xz 71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1
sha512 gcc-9.3.0.tar.xz 4b9e3639eef6e623747a22c37a904b4750c93b6da77cf3958d5047e9b5ebddb7eebe091cc16ca0a227c0ecbd2bf3b984b221130f269a97ee4cc18f9cf6c444de
md5 gcc-9.3.0.tar.gz 9b7e8f6cfad96114e726c752935af58a
sha1 gcc-9.3.0.tar.gz d93d8950229b23d7e7c5cd0037fb4a51e3ce3a19
sha256 gcc-9.3.0.tar.gz 5258a9b6afe9463c2e56b9e8355b1a4bee125ca828b8078f910303bc2ef91fa6
sha512 gcc-9.3.0.tar.gz 3e9b865354a4306b33b1dd90b58c230120d668b3e26bd4369967e84ff00adbbfb822a0ade340fdd248dbd07bcf326b262060873339bfc5b4c3773ad1be88ab33