depends on !BR2_csky
select BR2_TOOLCHAIN_GCC_AT_LEAST_10
+config BR2_GCC_VERSION_11_X
+ bool "gcc 11.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
+ # C-SKY sk610 needs abiv1, which is not supported in
+ # upstream gcc. C-SKY gcc upstream support not tested
+ # with upstream binutils and glibc.
+ depends on !BR2_csky
+ # 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
+ select BR2_TOOLCHAIN_GCC_AT_LEAST_11
+
endchoice
# libcilkrts was introduced in gcc 4.9 and removed in gcc 8.x
default "8.4.0" if BR2_GCC_VERSION_8_X
default "9.4.0" if BR2_GCC_VERSION_9_X
default "10.3.0" if BR2_GCC_VERSION_10_X
+ default "11.1.0" if BR2_GCC_VERSION_11_X
default "arc-2020.09-release" if BR2_GCC_VERSION_ARC
default "48152afb96c59733d5bc79e3399bb7b3d4b44266" if BR2_GCC_VERSION_CSKY
sha512 dfd3500bf21784b8351a522d53463cf362ede66b0bc302edf350bb44e94418497a8b4b797b6af8ca9b2eeb746b3b115d9c3698381b989546e9151b4496415624 gcc-9.4.0.tar.xz
# From ftp://gcc.gnu.org/pub/gcc/releases/gcc-10.3.0/sha512.sum
sha512 2b2dd7453d48a398c29eaebd1422b70341001b8c90a62aee51e83344e7fdd8a8e45f82a4a9165bd7edc76dada912c932f4b6632c5636760fec4c5d7e402b3f86 gcc-10.3.0.tar.xz
+# From ftp://gcc.gnu.org/pub/gcc/releases/gcc-11.1.0/sha512.sum
+sha512 fd6bba0f67ff48069d03073d1a9b5e896383b1cfc9dde008e868e60a9ec5014a837d56af0ecbf467b3fb9b37ec74a676e819a18b44393a0a3c4280175b5d7ad8 gcc-11.1.0.tar.xz
# Locally calculated (fetched from Github)
sha512 b0853e2b1c5998044392023fa653e399e74118c46e616504ac59e1a2cf27620f94434767ce06b6cf4ca3dfb57f81d6eda92752befaf095ea5e564a9181b4659c gcc-arc-2020.09-release.tar.gz