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

LEDE Commits lede-commits at lists.infradead.org
Mon Mar 12 04:22:48 PDT 2018


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/61eee1adfbc9433b08b53f44804d4fb8d8d25f38

commit 61eee1adfbc9433b08b53f44804d4fb8d8d25f38
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Mon Mar 12 10:31:19 2018 +0100

    toolchain/gcc: switch to version 7 by default
    
    Newer GCC versions are reported to improve code size on various ARM
    devices, which is why newer u-boot versions require them now.
    There have also been user reports of data corruption issues fixed on
    MIPS by updating from GCC 5 to GCC 7.
    
    This update was previously held up by these two MIPS compile issues,
    which have since been fixed:
    
    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496
    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84790
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 toolchain/gcc/Config.in      |  3 +--
 toolchain/gcc/Config.version | 10 ++++------
 2 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/toolchain/gcc/Config.in b/toolchain/gcc/Config.in
index 1456985..34db20d 100644
--- a/toolchain/gcc/Config.in
+++ b/toolchain/gcc/Config.in
@@ -3,8 +3,7 @@
 choice
 	prompt "GCC compiler Version" if TOOLCHAINOPTS
 	default GCC_USE_VERSION_7_1_ARC if arc
-	default GCC_USE_VERSION_7 if x86_64 || i386
-	default GCC_USE_VERSION_5
+	default GCC_USE_VERSION_7
 	help
 	  Select the version of gcc you wish to use.
 
diff --git a/toolchain/gcc/Config.version b/toolchain/gcc/Config.version
index ef47fb4..50da678 100644
--- a/toolchain/gcc/Config.version
+++ b/toolchain/gcc/Config.version
@@ -2,15 +2,13 @@ config GCC_VERSION_7_1_ARC
 	default y if (!TOOLCHAINOPTS && arc)
 	bool
 
-config GCC_VERSION_7
-	default y if GCC_USE_VERSION_7
-	default y if (!TOOLCHAINOPTS && x86_64)
-	default y if (!TOOLCHAINOPTS && i386)
+config GCC_VERSION_5
+	default y if GCC_USE_VERSION_5
 	bool
 
 config GCC_VERSION
 	string
+	default "5.5.0"		if GCC_VERSION_5
 	default "arc-2017.09-release"   if GCC_VERSION_7_1_ARC
 	default "6.3.0"         if GCC_USE_VERSION_6
-	default "7.3.0"         if GCC_VERSION_7
-	default "5.5.0"
+	default "7.3.0"



More information about the lede-commits mailing list