toolchain: fix selecting older gcc versions for x86
[openwrt/openwrt.git] / toolchain / gcc / Config.version
index d640c04d927fbf6103b76a7f068288ecdb377c16..ef47fb419dc085e3955444c0cbc5537c27641e00 100644 (file)
@@ -1,39 +1,16 @@
-config GCC_VERSION_4_4_7
-       default y if (!TOOLCHAINOPTS && avr32)
+config GCC_VERSION_7_1_ARC
+       default y if (!TOOLCHAINOPTS && arc)
        bool
 
-config GCC_VERSION_4_6_LINARO
-       default y if (!TOOLCHAINOPTS && TARGET_octeon)
-       bool
-
-config GCC_VERSION_4_8_LINARO
-       default y if (!TOOLCHAINOPTS && !avr32 && !TARGET_octeon)
-       bool
-
-config GCC_VERSION_4_9_LINARO
+config GCC_VERSION_7
+       default y if GCC_USE_VERSION_7
+       default y if (!TOOLCHAINOPTS && x86_64)
+       default y if (!TOOLCHAINOPTS && i386)
        bool
 
 config GCC_VERSION
        string
-       default "4.4.7"     if GCC_VERSION_4_4_7
-       default "4.6.3"     if GCC_VERSION_4_6_3
-       default "4.6-linaro"    if GCC_VERSION_4_6_LINARO
-       default "4.8-linaro"    if GCC_VERSION_4_8_LINARO
-       default "4.9-linaro"    if GCC_VERSION_4_9_LINARO
-       default "4.6-linaro"
-
-config GCC_VERSION_4_4
-       bool
-       default y       if GCC_VERSION_4_4_7
-
-config GCC_VERSION_4_6
-       bool
-       default y       if GCC_VERSION_4_6_LINARO
-
-config GCC_VERSION_4_8
-       bool
-       default y       if GCC_VERSION_4_8_LINARO
-
-config GCC_VERSION_4_9
-       bool
-       default y       if GCC_VERSION_4_9_LINARO
+       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"