[openwrt/openwrt] toolchain/gcc: switch to version 12 by default

LEDE Commits lede-commits at lists.infradead.org
Sun Jan 8 15:35:12 PST 2023


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/d9de5252a44e208cecaa1e2edad3d1615b84302c

commit d9de5252a44e208cecaa1e2edad3d1615b84302c
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Mon Dec 19 01:47:48 2022 +0100

    toolchain/gcc: switch to version 12 by default
    
    This was build tested with all core packages on all targets
    successfully.
    
    Most packages from the feed are also building fine.
    
    This was run tested on the following systems:
    * lantiq/xrx200 musl
    * pistachio/generic musl
    * sunxi/cortexa53 musl
    * x86/64 musl
    * x86/64 glibc
    * armvirt/64 musl
    
    The size of the images stays more or less the same for MIPS BE and
    aarch64. I haven't tested other architectures.
    
    With GCC 11 I got these sizes for lantiq/xrx200:
    7,219,848 openwrt-lantiq-xrx200-tplink_tdw8970-initramfs-kernel.bin
    7,472,208 openwrt-lantiq-xrx200-tplink_tdw8970-squashfs-sysupgrade.bin
    
    With GCC 12 I got these sizes for lantiq/xrx200:
    7,217,355 openwrt-lantiq-xrx200-tplink_tdw8970-initramfs-kernel.bin
    7,406,674 openwrt-lantiq-xrx200-tplink_tdw8970-squashfs-sysupgrade.bin
    
    The sysupgrade image is probably padded. The initramfs image is 0.03% smaller.
    
    With GCC 11 I got these sizes for armvirt/64:
     4,143,943 openwrt-armvirt-64-default-rootfs.tar.gz
    10,887,176 openwrt-armvirt-64-Image
    24,911,880 openwrt-armvirt-64-Image-initramfs
     4,141,572 openwrt-armvirt-64-rootfs.cpio.gz
     4,255,854 openwrt-armvirt-64-rootfs-ext4.img.gz
     3,391,178 openwrt-armvirt-64-rootfs-squashfs.img.gz
    
    With GCC 12 I got these sizes for armvirt/64:
     4,142,778 openwrt-armvirt-64-default-rootfs.tar.gz
    10,887,176 openwrt-armvirt-64-Image
    24,911,880 openwrt-armvirt-64-Image-initramfs
     4,138,105 openwrt-armvirt-64-rootfs.cpio.gz
     4,255,463 openwrt-armvirt-64-rootfs-ext4.img.gz
     3,390,390 openwrt-armvirt-64-rootfs-squashfs.img.gz
    
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 toolchain/gcc/Config.in      | 2 +-
 toolchain/gcc/Config.version | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/toolchain/gcc/Config.in b/toolchain/gcc/Config.in
index 3c074c99b2..af4d54c73e 100644
--- a/toolchain/gcc/Config.in
+++ b/toolchain/gcc/Config.in
@@ -2,7 +2,7 @@
 
 choice
 	prompt "GCC compiler Version" if TOOLCHAINOPTS
-	default GCC_USE_VERSION_11
+	default GCC_USE_VERSION_12
 	help
 	  Select the version of gcc you wish to use.
 
diff --git a/toolchain/gcc/Config.version b/toolchain/gcc/Config.version
index 65f272746b..6202ca732f 100644
--- a/toolchain/gcc/Config.version
+++ b/toolchain/gcc/Config.version
@@ -1,8 +1,8 @@
-config GCC_VERSION_12
-	default y if GCC_USE_VERSION_12
+config GCC_VERSION_11
+	default y if GCC_USE_VERSION_11
 	bool
 
 config GCC_VERSION
 	string
-	default "12.2.0"	if GCC_VERSION_12
-	default "11.3.0"
+	default "12.2.0"
+	default "11.3.0"	if GCC_VERSION_11




More information about the lede-commits mailing list