[openwrt/openwrt] toolchain/gcc: use version 7.x for x86 by default

LEDE Commits lede-commits at lists.infradead.org
Wed Feb 21 11:59:00 PST 2018


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

commit 7a97588bc6ae70a134456833d4d489148e38a5aa
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Wed Feb 21 20:31:05 2018 +0100

    toolchain/gcc: use version 7.x for x86 by default
    
    This is needed for retpoline support, which mitigates the spectre
    attacks.
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 toolchain/gcc/Config.in      | 1 +
 toolchain/gcc/Config.version | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/toolchain/gcc/Config.in b/toolchain/gcc/Config.in
index 30ac137..1456985 100644
--- a/toolchain/gcc/Config.in
+++ b/toolchain/gcc/Config.in
@@ -3,6 +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
 	help
 	  Select the version of gcc you wish to use.
diff --git a/toolchain/gcc/Config.version b/toolchain/gcc/Config.version
index b641cfe..2fc5082 100644
--- a/toolchain/gcc/Config.version
+++ b/toolchain/gcc/Config.version
@@ -2,9 +2,14 @@ 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 x86_64 || i386
+	bool
+
 config GCC_VERSION
 	string
 	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_USE_VERSION_7
+	default "7.3.0"         if GCC_VERSION_7
 	default "5.5.0"



More information about the lede-commits mailing list