HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/61533 )
Change subject: [only for test] test gcc-12 snapshot ......................................................................
[only for test] test gcc-12 snapshot
Change-Id: I2545f4119a20eec6482fbdf8993eb842af96a0a7 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M Makefile.inc M util/crossgcc/buildgcc D util/crossgcc/patches/gcc-11.2.0_gnat.patch R util/crossgcc/patches/gcc-12-20220130_ada-musl_workaround.patch R util/crossgcc/patches/gcc-12-20220130_asan_shadow_offset_callback.patch A util/crossgcc/patches/gcc-12-20220130_gnat.patch R util/crossgcc/patches/gcc-12-20220130_libcpp.patch R util/crossgcc/patches/gcc-12-20220130_libgcc.patch D util/crossgcc/sum/gcc-11.2.0.tar.xz.cksum A util/crossgcc/sum/gcc-12-20220130.tar.xz.cksum 10 files changed, 27 insertions(+), 27 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/61533/1
diff --git a/Makefile.inc b/Makefile.inc index f584189..4fe13b5 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -432,7 +432,7 @@ CFLAGS_common += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes CFLAGS_common += -Wwrite-strings -Wredundant-decls -Wno-trigraphs -Wimplicit-fallthrough CFLAGS_common += -Wshadow -Wdate-time -Wtype-limits -Wvla -CFLAGS_common += -Wdangling-else +CFLAGS_common += -Wdangling-else -Wno-array-bounds -Wno-array-compare CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer CFLAGS_common += -fstrict-aliasing -ffunction-sections -fdata-sections -fno-pie ifeq ($(CONFIG_COMPILER_GCC),y) diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index b0c7707..017285e 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -35,7 +35,7 @@ GMP_VERSION=6.2.1 MPFR_VERSION=4.1.0 MPC_VERSION=1.2.1 -GCC_VERSION=11.2.0 +GCC_VERSION=12-20220130 BINUTILS_VERSION=2.37 IASL_VERSION=20211217 # CLANG version number @@ -50,7 +50,7 @@ GMP_ARCHIVE="https://ftpmirror.gnu.org/gmp/gmp-$%7BGMP_VERSION%7D.tar.xz" MPFR_ARCHIVE="https://ftpmirror.gnu.org/mpfr/mpfr-$%7BMPFR_VERSION%7D.tar.xz" MPC_ARCHIVE="https://ftpmirror.gnu.org/mpc/mpc-$%7BMPC_VERSION%7D.tar.gz" -GCC_ARCHIVE="https://ftpmirror.gnu.org/gcc/gcc-$%7BGCC_VERSION%7D/gcc-$%7BGCC_VERSION%7D...." +GCC_ARCHIVE="https://gcc.gnu.org/pub/gcc/snapshots/LATEST-12/gcc-$%7BGCC_VERSION%7D.tar.x..." BINUTILS_ARCHIVE="https://ftpmirror.gnu.org/binutils/binutils-$%7BBINUTILS_VERSION%7D.tar.xz" IASL_ARCHIVE="https://acpica.org/sites/acpica/files/acpica-unix2-$%7BIASL_VERSION%7D.tar.g..." # CLANG toolchain archive locations diff --git a/util/crossgcc/patches/gcc-11.2.0_gnat.patch b/util/crossgcc/patches/gcc-11.2.0_gnat.patch deleted file mode 100644 index 2d7cece..0000000 --- a/util/crossgcc/patches/gcc-11.2.0_gnat.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- gcc-6.1.0/gcc/ada/gcc-interface/Make-lang.in.bak 2015-08-24 16:23:25.004493665 +0200 -+++ gcc-6.1.0/gcc/ada/gcc-interface/Make-lang.in 2015-08-24 17:53:52.496636113 +0200 -@@ -45,7 +45,7 @@ - - - # Extra flags to pass to recursive makes. --COMMON_ADAFLAGS= -gnatpg -+COMMON_ADAFLAGS= -gnatpg -gnatwGUR - ifeq ($(TREECHECKING),) - CHECKING_ADAFLAGS= - else diff --git a/util/crossgcc/patches/gcc-11.2.0_ada-musl_workaround.patch b/util/crossgcc/patches/gcc-12-20220130_ada-musl_workaround.patch similarity index 100% rename from util/crossgcc/patches/gcc-11.2.0_ada-musl_workaround.patch rename to util/crossgcc/patches/gcc-12-20220130_ada-musl_workaround.patch diff --git a/util/crossgcc/patches/gcc-11.2.0_asan_shadow_offset_callback.patch b/util/crossgcc/patches/gcc-12-20220130_asan_shadow_offset_callback.patch similarity index 95% rename from util/crossgcc/patches/gcc-11.2.0_asan_shadow_offset_callback.patch rename to util/crossgcc/patches/gcc-12-20220130_asan_shadow_offset_callback.patch index 25963b3..126c0d3 100644 --- a/util/crossgcc/patches/gcc-11.2.0_asan_shadow_offset_callback.patch +++ b/util/crossgcc/patches/gcc-12-20220130_asan_shadow_offset_callback.patch @@ -33,10 +33,10 @@ Signed-off-by: Harshit Sharma harshitsharmajs@gmail.com Signed-off-by: Patrick Georgi pgeorgi@google.com
-diff --git a/gcc/asan.c b/gcc/asan.c +diff --git a/gcc/asan.cc b/gcc/asan.cc index 235e21947..713bf994d 100644 ---- a/gcc/asan.c -+++ b/gcc/asan.c +--- a/gcc/asan.cc ++++ b/gcc/asan.cc @@ -1389,13 +1389,28 @@ asan_emit_stack_protection (rtx base, rtx pbase, unsigned int alignb, TREE_ASM_WRITTEN (decl) = 1; TREE_ASM_WRITTEN (id) = 1; @@ -73,8 +73,8 @@ gcc_assert (asan_shadow_set != -1 && (ASAN_RED_ZONE_SIZE >> ASAN_SHADOW_SHIFT) == 4); shadow_mem = gen_rtx_MEM (SImode, shadow_base); ---- gcc-11.1.0/gcc/params.opt~ 2021-05-11 09:02:51.897508677 +0200 -+++ gcc-11.1.0/gcc/params.opt 2021-05-11 09:10:43.692610696 +0200 +--- gcc-12/gcc/params.opt~ 2021-05-11 09:02:51.897508677 +0200 ++++ gcc-12/gcc/params.opt 2021-05-11 09:10:43.692610696 +0200 @@ -50,6 +50,10 @@ Common Joined UInteger Var(param_asan_instrumentation_with_call_threshold) Init(7000) Param Optimization Use callbacks instead of inline code if number of accesses in function becomes greater or equal to this number. diff --git a/util/crossgcc/patches/gcc-12-20220130_gnat.patch b/util/crossgcc/patches/gcc-12-20220130_gnat.patch new file mode 100644 index 0000000..b1db062 --- /dev/null +++ b/util/crossgcc/patches/gcc-12-20220130_gnat.patch @@ -0,0 +1,11 @@ +--- gcc-12/gcc/ada/gcc-interface/Make-lang.in.bak 2015-08-24 16:23:25.004493665 +0200 ++++ gcc-12/gcc/ada/gcc-interface/Make-lang.in 2015-08-24 17:53:52.496636113 +0200 +@@ -45,7 +45,7 @@ + + + # Extra flags to pass to recursive makes. +-COMMON_ADAFLAGS= -gnatpg ++COMMON_ADAFLAGS= -gnatpg -gnatwGUR + ifeq ($(TREECHECKING),) + CHECKING_ADAFLAGS= + else diff --git a/util/crossgcc/patches/gcc-11.2.0_libcpp.patch b/util/crossgcc/patches/gcc-12-20220130_libcpp.patch similarity index 85% rename from util/crossgcc/patches/gcc-11.2.0_libcpp.patch rename to util/crossgcc/patches/gcc-12-20220130_libcpp.patch index df28c01..7fb1fab 100644 --- a/util/crossgcc/patches/gcc-11.2.0_libcpp.patch +++ b/util/crossgcc/patches/gcc-12-20220130_libcpp.patch @@ -1,8 +1,8 @@ GCC with `-Wformat-security -Werror=format-security` hardening options enabled by default rejects some codes in libcpp. This patch fixes them.
---- gcc-8.3.0/libcpp/expr.c.bak 2020-09-11 15:44:45.770000000 +0900 -+++ gcc-8.3.0/libcpp/expr.c 2020-09-11 15:46:22.370000000 +0900 +--- gcc-12/libcpp/expr.cc.bak 2020-09-11 15:44:45.770000000 +0900 ++++ gcc-12/libcpp/expr.cc 2020-09-11 15:46:22.370000000 +0900 @@ -794,10 +794,10 @@
if (CPP_OPTION (pfile, c99)) @@ -16,8 +16,8 @@ }
result |= CPP_N_INTEGER; ---- gcc-8.3.0/libcpp/macro.c.bak 2020-09-11 16:01:42.550000000 +0900 -+++ gcc-8.3.0/libcpp/macro.c 2020-09-11 16:03:47.850000000 +0900 +--- gcc-12/libcpp/macro.cc.bak 2020-09-11 16:01:42.550000000 +0900 ++++ gcc-12/libcpp/macro.cc 2020-09-11 16:03:47.850000000 +0900 @@ -160,7 +160,7 @@ if (m_state == 2 && token->type == CPP_PASTE) { diff --git a/util/crossgcc/patches/gcc-11.2.0_libgcc.patch b/util/crossgcc/patches/gcc-12-20220130_libgcc.patch similarity index 89% rename from util/crossgcc/patches/gcc-11.2.0_libgcc.patch rename to util/crossgcc/patches/gcc-12-20220130_libgcc.patch index 2f75c92..4ff391d 100644 --- a/util/crossgcc/patches/gcc-11.2.0_libgcc.patch +++ b/util/crossgcc/patches/gcc-12-20220130_libgcc.patch @@ -1,9 +1,9 @@ This enables building on Mac OS and FreeBSD by adding support to their variants of the sed utility.
-diff -urN gcc-5.2.0.orig/libgcc/config/t-hardfp gcc-5.2.0/libgcc/config/t-hardfp ---- gcc-5.2.0.orig/libgcc/config/t-hardfp 2015-01-05 04:33:28.000000000 -0800 -+++ gcc-8.1.0/libgcc/config/t-hardfp 2016-04-06 12:04:51.000000000 -0700 +diff -urN gcc-12.orig/libgcc/config/t-hardfp gcc-12/libgcc/config/t-hardfp +--- gcc-12.orig/libgcc/config/t-hardfp 2015-01-05 04:33:28.000000000 -0800 ++++ gcc-12/libgcc/config/t-hardfp 2016-04-06 12:04:51.000000000 -0700 @@ -59,21 +59,52 @@
hardfp_func_list := $(filter-out $(hardfp_exclusions),$(hardfp_func_list)) diff --git a/util/crossgcc/sum/gcc-11.2.0.tar.xz.cksum b/util/crossgcc/sum/gcc-11.2.0.tar.xz.cksum deleted file mode 100644 index 071c352..0000000 --- a/util/crossgcc/sum/gcc-11.2.0.tar.xz.cksum +++ /dev/null @@ -1 +0,0 @@ -f902ccacecf8949978d6261e9f1d034cff73ffdb tarballs/gcc-11.2.0.tar.xz diff --git a/util/crossgcc/sum/gcc-12-20220130.tar.xz.cksum b/util/crossgcc/sum/gcc-12-20220130.tar.xz.cksum new file mode 100644 index 0000000..e809296 --- /dev/null +++ b/util/crossgcc/sum/gcc-12-20220130.tar.xz.cksum @@ -0,0 +1 @@ +4928208590010b85e665bffb3c42e9c59bdb3f5a tarballs/gcc-12-20220130.tar.xz