toolchain/Config.in: add BR2_TOOLCHAIN_GCC_AT_LEAST_13 blind option
PATCH 1/6 toolchain/Config.in: add BR2_TOOLCHAIN_GCC_AT_LEAST_13 blind option
In order to add gcc 13 support for internal and external toolchain in follow-up commits, introduce BR2_TOOLCHAIN_GCC_AT_LEAST_13 symbol.
--- toolchain/Config.in | 5 +++++ 1 file changed, 5 insertions(+)
toolchain/Config.in +5 -0
@@ -747,10 +747,15 @@ config BR2_TOOLCHAIN_GCC_AT_LEAST_12 bool select BR2_TOOLCHAIN_GCC_AT_LEAST_11 +config BR2_TOOLCHAIN_GCC_AT_LEAST_13 + bool + select BR2_TOOLCHAIN_GCC_AT_LEAST_12 + # This order guarantees that the highest version is set, as kconfig # stops affecting a value on the first matching default. config BR2_TOOLCHAIN_GCC_AT_LEAST string + default "13" if BR2_TOOLCHAIN_GCC_AT_LEAST_13 default "12" if BR2_TOOLCHAIN_GCC_AT_LEAST_12 default "11" if BR2_TOOLCHAIN_GCC_AT_LEAST_11 default "10" if BR2_TOOLCHAIN_GCC_AT_LEAST_10
Signature · 6 lines
2.34.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/6 toolchain/toolchain-external/toolchain-external-custom: add gcc 13 version selection
This patch allows to use an external toolchain based on gcc 13.
--- .../toolchain-external-custom/Config.in.options | 4 ++++ 1 file changed, 4 insertions(+)
toolchain/toolchain-external/toolchain-external-custom/Config.in.options +4 -0
@@ -31,6 +31,10 @@ choice Set to the gcc version that is used by your external toolchain. +config BR2_TOOLCHAIN_EXTERNAL_GCC_13 + bool "13.x" + select BR2_TOOLCHAIN_GCC_AT_LEAST_13 + config BR2_TOOLCHAIN_EXTERNAL_GCC_12 bool "12.x" select BR2_TOOLCHAIN_GCC_AT_LEAST_12
Signature · 6 lines
2.34.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/6 package/gcc: add support for gcc 13
In reply to Romain Naourhttps://gcc.gnu.org/gcc-13/changes.html
https://gcc.gnu.org/gcc-13/porting_to.html
Backport upstream patch to gcc 13.1 for RISC-V build issue with gcc 4.9.x:
GCC should still build with GCC 4.8.3 or newer [1] using C++03 by default. But a recent change in RISC-V port introduced a C++11 feature "std::log2" [2].
Use log2 from the C header, without the namespace [3].
[1] https://gcc.gnu.org/install/prerequisites.html
[2] https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=7caa1ae5e451e780fbc4746a54e3f19d4f4304dc
[3] https://stackoverflow.com/questions/26733413/error-log2-is-not-a-member-of-std
Rebase patch 0001-disable-split-stack-for-non-thread-builds.patch required for uClibc-ng without threads support.
Fixes:
https://gitlab.com/buildroot.org/toolchains-builder/-/jobs/4202276589
---
efl2flt for riscv64 is broken with gcc 13.1
https://gitlab.com/DocSepp/buildroot/-/jobs/4197460843
--- ...le-split-stack-for-non-thread-builds.patch | 26 ++++++++++ ...ISC-V-fix-build-issue-with-gcc-4.9.x.patch | 48 +++++++++++++++++++ package/gcc/Config.in.host | 14 ++++++ package/gcc/gcc.hash | 2 + 4 files changed, 90 insertions(+) create mode 100644 package/gcc/13.1.0/0001-disable-split-stack-for-non-thread-builds.patch create mode 100644 package/gcc/13.1.0/0002-RISC-V-fix-build-issue-with-gcc-4.9.x.patch
package/gcc/13.1.0/0001-disable-split-stack-for-non-thread-builds.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 4f67134e0b1404fef4ea72342be8fab4c37ca8c8 Mon Sep 17 00:00:00 2001 +From: Waldemar Brodkorb <[email protected]> +Date: Mon, 25 Jul 2022 00:29:55 +0200 +Subject: [PATCH] disable split-stack for non-thread builds + +Signed-off-by: Waldemar Brodkorb <[email protected]> +[Romain: convert to git format] +Signed-off-by: Romain Naour <[email protected]> +--- + libgcc/config/t-stack | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libgcc/config/t-stack b/libgcc/config/t-stack +index cc0366b4cd8..f3f97e86d60 100644 +--- 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 +-- +2.34.3 +
package/gcc/13.1.0/0002-RISC-V-fix-build-issue-with-gcc-4.9.x.patch new file +48 -0
48 lines not on this page · raw message
package/gcc/Config.in.host +14 -0
@@ -59,6 +59,19 @@ config BR2_GCC_VERSION_12_X depends on !BR2_archs4x_rel31 select BR2_TOOLCHAIN_GCC_AT_LEAST_12 +config BR2_GCC_VERSION_13_X + bool "gcc 13.x" + # powerpc spe support has been deprecated since gcc 8.x. + # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html + depends on !BR2_powerpc_SPE + # uClibc-ng broken on sparc due to recent gcc changes + # that need to be reverted since gcc 8.4, 9.3 and 10.1. + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98784 + depends on !BR2_sparc + # ARC HS48 rel 31 only supported by gcc arc fork. + depends on !BR2_archs4x_rel31 + select BR2_TOOLCHAIN_GCC_AT_LEAST_13 + endchoice # libcilkrts was introduced in gcc 4.9 and removed in gcc 8.x
@@ -89,6 +102,7 @@ config BR2_GCC_VERSION default "10.4.0" if BR2_GCC_VERSION_10_X default "11.3.0" if BR2_GCC_VERSION_11_X default "12.2.0" if BR2_GCC_VERSION_12_X + default "13.1.0" if BR2_GCC_VERSION_13_X default "arc-2020.09-release" if BR2_GCC_VERSION_ARC config BR2_EXTRA_GCC_CONFIG_OPTIONS
package/gcc/gcc.hash +2 -0
@@ -6,6 +6,8 @@ sha512 440c08ca746da450d9a1b35e8fd2305cb27e7e6987cd9d0f7d375f3b1fc9e4b0bd7acb3c sha512 f0be5ad705c73b84477128a69c047f57dd47002f375eb60e1e842e08cf2009a509e92152bca345823926d550b7395ae6d4de7db51d1ee371c2dc37313881fca7 gcc-11.3.0.tar.xz # From https://gcc.gnu.org/pub/gcc/releases/gcc-12.2.0/sha512.sum sha512 e9e857bd81bf7a370307d6848c81b2f5403db8c7b5207f54bce3f3faac3bde63445684092c2bc1a2427cddb6f7746496d9fbbef05fbbd77f2810b2998f1f9173 gcc-12.2.0.tar.xz +# From https://gcc.gnu.org/pub/gcc/releases/gcc-13.1.0/sha512.sum +sha512 6cf06dfc48f57f5e67f7efe3248019329a14d690c728d9f2f7ef5fa0d58f1816f309586ba7ea2eac20d0b60a2d1b701f68392e9067dd46f827ba0efd7192db33 gcc-13.1.0.tar.xz # Locally calculated (fetched from Github) sha512 b0853e2b1c5998044392023fa653e399e74118c46e616504ac59e1a2cf27620f94434767ce06b6cf4ca3dfb57f81d6eda92752befaf095ea5e564a9181b4659c gcc-arc-2020.09-release.tar.gz
Signature · 6 lines
2.34.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 4/6 arch/Config.in: add BR2_ARCH_NEEDS_GCC_AT_LEAST_13
In reply to Romain NaourThis new symbol will be used by architectures introduced with gcc 13.
--- arch/Config.in | 4 ++++ package/gcc/Config.in.host | 1 + 2 files changed, 5 insertions(+)
arch/Config.in +4 -0
@@ -304,6 +304,10 @@ config BR2_ARCH_NEEDS_GCC_AT_LEAST_12 bool select BR2_ARCH_NEEDS_GCC_AT_LEAST_11 +config BR2_ARCH_NEEDS_GCC_AT_LEAST_13 + bool + select BR2_ARCH_NEEDS_GCC_AT_LEAST_12 + # The following string values are defined by the individual # Config.in.$ARCH files config BR2_ARCH
package/gcc/Config.in.host +1 -0
@@ -48,6 +48,7 @@ config BR2_GCC_VERSION_11_X config BR2_GCC_VERSION_12_X bool "gcc 12.x" + depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_13 # powerpc spe support has been deprecated since gcc 8.x. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html depends on !BR2_powerpc_SPE
Signature · 6 lines
2.34.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 5/6 package/gcc: switch to gcc 12.x as the default
In reply to Romain NaourEven if gcc 11 is still maintained for some time, switch to gcc 12.x since it has been released since 2022-05-06 and gcc 13.x is available since 2023-04-26.
We have been having toolchains in the autobuilders with gcc 12.x for a while, so the vast majority of the problems should have already been solved.
--- package/gcc/Config.in.host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/gcc/Config.in.host +1 -1
@@ -5,7 +5,7 @@ choice default BR2_GCC_VERSION_ARC if BR2_GCC_VERSION_4_8_ARC # legacy default BR2_GCC_VERSION_ARC if BR2_arc default BR2_GCC_VERSION_POWERPC_SPE if BR2_powerpc_SPE - default BR2_GCC_VERSION_11_X + default BR2_GCC_VERSION_12_X help Select the version of gcc you wish to use.
Signature · 6 lines
2.34.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 6/6 package/gcc: remove gcc 10.x
In reply to Romain Naourgcc 13.1 is around, gcc 12.2 is the default version, so drop 10.4 in order to reduce the gcc choice.
--- Config.in.legacy | 7 + ...get-92095-internal-error-with-O1-mcp.patch | 328 ------------------ ...-mcmodel-option-to-handle-large-GOTs.patch | 200 ----------- ...-cmodel-large-when-building-crtstuff.patch | 60 ---- ...TRANT-for-OpenRISC-when-pthread-is-p.patch | 31 -- ...le-split-stack-for-non-thread-builds.patch | 26 -- ...-machine-names-in-__has_include-.-PR.patch | 124 ------- package/gcc/Config.in.host | 11 - 8 files changed, 7 insertions(+), 780 deletions(-) delete mode 100644 package/gcc/10.4.0/0001-Revert-re-PR-target-92095-internal-error-with-O1-mcp.patch delete mode 100644 package/gcc/10.4.0/0002-or1k-Add-mcmodel-option-to-handle-large-GOTs.patch delete mode 100644 package/gcc/10.4.0/0003-or1k-Use-cmodel-large-when-building-crtstuff.patch delete mode 100644 package/gcc/10.4.0/0004-gcc-define-_REENTRANT-for-OpenRISC-when-pthread-is-p.patch delete mode 100644 package/gcc/10.4.0/0005-disable-split-stack-for-non-thread-builds.patch delete mode 100644 package/gcc/10.4.0/0006-fixinc-don-t-fix-machine-names-in-__has_include-.-PR.patch
Config.in.legacy +7 -0
@@ -146,6 +146,13 @@ endif comment "Legacy options removed in 2023.05" +config BR2_GCC_VERSION_10_X + bool "gcc 10.x support removed" + select BR2_LEGACY + help + Support for gcc version 10.x has been removed. The current + default version (12.x or later) has been selected instead. + config BR2_PACKAGE_ATK bool "atk removed" select BR2_LEGACY
package/gcc/10.4.0/0001-Revert-re-PR-target-92095-internal-error-with-O1-mcp.patch deleted +0 -328
328 lines not on this page · raw message
package/gcc/10.4.0/0002-or1k-Add-mcmodel-option-to-handle-large-GOTs.patch deleted +0 -200
200 lines not on this page · raw message
package/gcc/10.4.0/0003-or1k-Use-cmodel-large-when-building-crtstuff.patch deleted +0 -60
60 lines not on this page · raw message
package/gcc/10.4.0/0004-gcc-define-_REENTRANT-for-OpenRISC-when-pthread-is-p.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From d2e4e3e72b5f2f68d595dfd3a77f58744f3f243e Mon Sep 17 00:00:00 2001 -From: Bernd Kuhls <[email protected]> -Date: Fri, 27 Mar 2020 21:23:53 +0100 -Subject: [PATCH] gcc: define _REENTRANT for OpenRISC when -pthread is passed - -The detection of pthread support fails on OpenRISC unless _REENTRANT -is defined. Added the CPP_SPEC definition to correct this. - -Patch sent upstream: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94372 - -Signed-off-by: Bernd Kuhls <[email protected]> ---- - gcc/config/or1k/linux.h | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/gcc/config/or1k/linux.h b/gcc/config/or1k/linux.h -index 21cef067dda..2e1bb5601a9 100644 ---- a/gcc/config/or1k/linux.h -+++ b/gcc/config/or1k/linux.h -@@ -32,6 +32,8 @@ - #undef MUSL_DYNAMIC_LINKER - #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-or1k.so.1" - -+#define CPP_SPEC "%{pthread:-D_REENTRANT}" -+ - #undef LINK_SPEC - #define LINK_SPEC "%{h*} \ - %{static:-Bstatic} \ --- -2.34.3 -
package/gcc/10.4.0/0005-disable-split-stack-for-non-thread-builds.patch deleted +0 -26
@@ -1,26 +0,0 @@ -From 14336d46b35577300dd68147a8f0c8165684850b Mon Sep 17 00:00:00 2001 -From: Waldemar Brodkorb <[email protected]> -Date: Mon, 25 Jul 2022 00:29:55 +0200 -Subject: [PATCH] disable split-stack for non-thread builds - -Signed-off-by: Waldemar Brodkorb <[email protected]> -[Romain: convert to git format] -Signed-off-by: Romain Naour <[email protected]> ---- - libgcc/config/t-stack | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/libgcc/config/t-stack b/libgcc/config/t-stack -index cc0366b4cd8..f3f97e86d60 100644 ---- 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 --- -2.34.3 -
package/gcc/10.4.0/0006-fixinc-don-t-fix-machine-names-in-__has_include-.-PR.patch deleted +0 -124
124 lines not on this page · raw message
package/gcc/Config.in.host +0 -11
@@ -22,16 +22,6 @@ config BR2_GCC_VERSION_POWERPC_SPE depends on BR2_powerpc_SPE select BR2_TOOLCHAIN_GCC_AT_LEAST_8 -config BR2_GCC_VERSION_10_X - bool "gcc 10.x" - depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_11 - # powerpc spe support has been deprecated since gcc 8.x. - # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html - depends on !BR2_powerpc_SPE - # ARC HS48 rel 31 only supported by gcc arc fork. - depends on !BR2_archs4x_rel31 - select BR2_TOOLCHAIN_GCC_AT_LEAST_10 - config BR2_GCC_VERSION_11_X bool "gcc 11.x" depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_12
@@ -100,7 +90,6 @@ config BR2_GCC_SUPPORTS_DLANG config BR2_GCC_VERSION string default "8.4.0" if BR2_GCC_VERSION_POWERPC_SPE - default "10.4.0" if BR2_GCC_VERSION_10_X default "11.3.0" if BR2_GCC_VERSION_11_X default "12.2.0" if BR2_GCC_VERSION_12_X default "13.1.0" if BR2_GCC_VERSION_13_X
Signature · 6 lines
2.34.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 3/6] package/gcc: add support for gcc 13
In reply to Romain NaourQuoted 15 lines · Romain Naour
https://gcc.gnu.org/gcc-13/changes.html
https://gcc.gnu.org/gcc-13/porting_to.htmlBackport upstream patch to gcc 13.1 for RISC-V build issue with gcc 4.9.x:
GCC should still build with GCC 4.8.3 or newer [1] using C++03 by default. But a recent change in RISC-V port introduced a C++11 feature "
std::log2" [2].Use log2 from the C header, without the namespace [3].
[1] https://gcc.gnu.org/install/prerequisites.html
[2] https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=7caa1ae5e451e780fbc4746a54e3f19d4f4304dc
[3] https://stackoverflow.com/questions/26733413/error-log2-is-not-a-member-of-std
Quoted 5 lines
Rebase patch 0001-disable-split-stack-for-non-thread-builds.patch required for uClibc-ng without threads support.
Fixes:
https://gitlab.com/buildroot.org/toolchains-builder/-/jobs/4202276589
Carrying my tag from Bernd's series [1]:
[1]: https://lore.kernel.org/buildroot/[email protected]/
Signature · 5 lines
An old man doll... just what I always wanted! - Clara _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [External] - [PATCH 3/6] package/gcc: add support for gcc 13
In reply to Romain NaourRomain,
Quoted 174 lines
-----Original Message-----
From: buildroot <[email protected]> On Behalf Of Romain Naour
Sent: Tuesday, May 16, 2023 8:51 AM
To: [email protected]
Cc: Romain Naour <[email protected]>
Subject: [External] - [Buildroot] [PATCH 3/6] package/gcc: add support for gcc 13https://gcc.gnu.org/gcc-13/changes.html
https://gcc.gnu.org/gcc-13/porting_to.htmlBackport upstream patch to gcc 13.1 for RISC-V build issue with gcc 4.9.x:
GCC should still build with GCC 4.8.3 or newer [1] using C++03 by default. But a recent change in RISC-V port introduced a C++11 feature "
std::log2" [2].Use log2 from the C header, without the namespace [3].
[1] https://gcc.gnu.org/install/prerequisites.html
[2]
https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=7caa1ae5e451e780fbc4746a54e3f19d4f4304dc
[3] https://stackoverflow.com/questions/26733413/error-log2-is-not-a-
member-of-stdRebase patch 0001-disable-split-stack-for-non-thread-builds.patch required for uClibc-ng without threads support.
Fixes:
https://gitlab.com/buildroot.org/toolchains-builder/-/jobs/4202276589Signed-off-by Romain Naour <[email protected]>---
efl2flt for riscv64 is broken with gcc 13.1
https://gitlab.com/DocSepp/buildroot/-/jobs/4197460843
---
...le-split-stack-for-non-thread-builds.patch | 26 ++++++++++ ...ISC-V-fix-
build-issue-with-gcc-4.9.x.patch | 48 +++++++++++++++++++package/gcc/Config.in.host | 14 ++++++ package/gcc/gcc.hash | 2 + 4 files changed, 90 insertions(+) create mode 100644 package/gcc/13.1.0/0001-disable-split-stack-for-non- thread-builds.patch create mode 100644 package/gcc/13.1.0/0002-RISC-V-fix-build-issue-with-gcc-4.9.x.patch
(quoted diff) +0
-0builds.patch b/package/gcc/13.1.0/0001-disable-split-stack-for-non-thread- builds.patch
new file mode 100644
index 0000000000..e801085dadpackage/gcc/13.1.0/0001-disable-split-stack-for-non-thread-builds. new file +2
-0+++ patch@@ -0,0 +1,26 @@ +From 4f67134e0b1404fef4ea72342be8fab4c37ca8c8 Mon Sep 17 00:00:002001
package/gcc/13.1.0/0001-disable-split-stack-for-non-thread-builds. new file +26
-0+From: Waldemar Brodkorb <[email protected]> +Date: Mon, 25 Jul 2022 00:29:55 +0200 +Subject: [PATCH] disable split-stack for non-thread builds + +Signed-off-by: Waldemar Brodkorb <[email protected]> +[Romain: convert to git format] +Signed-off-by: Romain Naour <[email protected]> +--- + libgcc/config/t-stack | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libgcc/config/t-stack b/libgcc/config/t-stack index +cc0366b4cd8..f3f97e86d60 100644 +--- 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 +-- +2.34.3 +(quoted diff) +0
-04.9.x.patch b/package/gcc/13.1.0/0002-RISC-V-fix-build-issue-with-gcc- 4.9.x.patch
new file mode 100644
index 0000000000..55fb40e358package/gcc/13.1.0/0002-RISC-V-fix-build-issue-with-gcc-4.9.x.patc new file +2
-0+++ h@@ -0,0 +1,48 @@ +From e5253b777eefef7d66d3bd1c641de6d133d3573d Mon Sep 17 00:00:002001
package/gcc/13.1.0/0002-RISC-V-fix-build-issue-with-gcc-4.9.x.patc new file +15
-0+From: Romain Naour <[email protected]> +Date: Tue, 2 May 2023 14:21:55 +0200 +Subject: [PATCH] RISC-V: fix build issue with gcc 4.9.x + +GCC should still build with GCC 4.8.3 or newer [1] using C++03 by +default. But a recent change in RISC-V port introduced a C++11 feature +"std::log2" [2]. + +Use log2 from the C header, without the namespace [3]. + +[1] https://gcc.gnu.org/install/prerequisites.html +[2] +https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=7caa1ae5e451e780fbc4746a54 +e3f19d4f4304dc [3] +https://stackoverflow.com/questions/26733413/error-log2-is-not-a-member
+-of-stdpackage/gcc/13.1.0/0002-RISC-V-fix-build-issue-with-gcc-4.9.x.patc new file +6
-0+ +Fixes: +https://gitlab.com/buildroot.org/toolchains-builder/-/jobs/4202276589 + +gcc/ChangeLog: + * config/riscv/genrvv-type-indexer.cc: Use log2 from the C header,without
package/gcc/13.1.0/0002-RISC-V-fix-build-issue-with-gcc-4.9.x.patc new file +15
-0+ the namespace. + +Signed-off-by: Romain Naour <[email protected]> (cherry picked +from commit 87c347c2897537a6aa391efbfc5ed00c625434fe) +Signed-off-by: Romain Naour <[email protected]> +--- + gcc/config/riscv/genrvv-type-indexer.cc | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/gcc/config/riscv/genrvv-type-indexer.cc +b/gcc/config/riscv/genrvv-type-indexer.cc +index e677b55290c..eebe382d1c3 100644 +--- a/gcc/config/riscv/genrvv-type-indexer.cc ++++ b/gcc/config/riscv/genrvv-type-indexer.cc +@@ -115,9 +115,9 @@ same_ratio_eew_type (unsigned sew, int lmul_log2,unsigned eew, bool
unsigned_p,package/gcc/13.1.0/0002-RISC-V-fix-build-issue-with-gcc-4.9.x.patc new file +14
-0+ if (sew == eew) + elmul_log2 = lmul_log2; + else if (sew > eew) +- elmul_log2 = lmul_log2 - std::log2 (sew / eew); ++ elmul_log2 = lmul_log2 - log2 (sew / eew); + else /* sew < eew */ +- elmul_log2 = lmul_log2 + std::log2 (eew / sew); ++ elmul_log2 = lmul_log2 + log2 (eew / sew); + + if (float_p) + return floattype (eew, elmul_log2); +-- +2.34.3 +package/gcc/Config.in.host index renamed from package/gcc/Config.in.host +0
-0
cd1b9fa46d..3beaaef309100644package/gcc/Config.in.host +13
-0@@ -59,6 +59,19 @@ config BR2_GCC_VERSION_12_X depends on !BR2_archs4x_rel31 select BR2_TOOLCHAIN_GCC_AT_LEAST_12 +config BR2_GCC_VERSION_13_X + bool "gcc 13.x" + # powerpc spe support has been deprecated since gcc 8.x. + # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html + depends on !BR2_powerpc_SPE + # uClibc-ng broken on sparc due to recent gcc changes + # that need to be reverted since gcc 8.4, 9.3 and 10.1. + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98784 + depends on !BR2_sparc + # ARC HS48 rel 31 only supported by gcc arc fork. + depends on !BR2_archs4x_rel31 + select BR2_TOOLCHAIN_GCC_AT_LEAST_13 + endchoice # libcilkrts was introduced in gcc 4.9 and removed in gcc 8.x @@ -89,6 +102,7@@ config
BR2_GCC_VERSION
Quoted 4 lines
default "10.4.0" if BR2_GCC_VERSION_10_X
default "11.3.0" if BR2_GCC_VERSION_11_X
default "12.2.0" if BR2_GCC_VERSION_12_X
+ default "13.1.0" if BR2_GCC_VERSION_13_X13.2 has been released, should we bump this patch?
https://gcc.gnu.org/pipermail/gcc/2023-July/242148.html
Quoted 34 lines
default "arc-2020.09-release" if BR2_GCC_VERSION_ARCconfig
BR2_EXTRA_GCC_CONFIG_OPTIONSpackage/gcc/gcc.hash index renamed from package/gcc/gcc.hash +0
-0
666124fa6d..d324852bdd100644package/gcc/gcc.hash +0
-0@@ -6,6 +6,8 @@ sha512440c08ca746da450d9a1b35e8fd2305cb27e7e6987cd9d0f7d375f3b1fc9e4b0bd 7acb3c
sha512
f0be5ad705c73b84477128a69c047f57dd47002f375eb60e1e842e08cf2009a509e92152bca345823926d550b7395ae6d4de7db51d1ee371c2dc37313881fca7gcc- 11.3.0.tar.xz # From https://gcc.gnu.org/pub/gcc/releases/gcc-
12.2.0/sha512.sum
sha512
e9e857bd81bf7a370307d6848c81b2f5403db8c7b5207f54bce3f3faac3bde63445684092c2bc1a2427cddb6f7746496d9fbbef05fbbd77f2810b2998f1f9173gcc- 12.2.0.tar.xzpackage/gcc/gcc.hash +3
-0+# From https://gcc.gnu.org/pub/gcc/releases/gcc-13.1.0/sha512.sum +sha512 +6cf06dfc48f57f5e67f7efe3248019329a14d690c728d9f2f7ef5fa0d58f1816f309586
package/gcc/gcc.hash +2
-0+ba7ea2eac20d0b60a2d1b701f68392e9067dd46f827ba0efd7192db33 +gcc-13.1.0.tar.xz # Locally calculated (fetched from Github) sha512b0853e2b1c5998044392023fa653e399e74118c46e616504ac59e1a2cf27620f944
34767ce06b6cf4ca3dfb57f81d6eda92752befaf095ea5e564a9181b4659cgcc- arc-2020.09-release.tar.gz
--
2.34.3
Quoted 7 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot