config: select KERNEL_WERROR if building with default GCC version
[openwrt/staging/stintel.git] / toolchain / gcc / Config.in
index 357589e1724ed64c87233f97a5c79d5dbbf25474..fd98914075524cdb4e6fd3b479bc30e120d9eb66 100644 (file)
@@ -2,20 +2,25 @@
 
 choice
        prompt "GCC compiler Version" if TOOLCHAINOPTS
-       default GCC_USE_VERSION_11
+       default GCC_USE_VERSION_13
        help
          Select the version of gcc you wish to use.
 
-       config GCC_USE_VERSION_8
-               bool "gcc 8.x"
-
-       config GCC_USE_VERSION_10
-               bool "gcc 10.x"
-
        config GCC_USE_VERSION_11
                bool "gcc 11.x"
+
+       config GCC_USE_VERSION_12
+               bool "gcc 12.x"
+
+       config GCC_USE_VERSION_13
+               bool "gcc 13.x"
 endchoice
 
+config GCC_USE_DEFAULT_VERSION
+       bool
+       default y if !TOOLCHAINOPTS || GCC_USE_VERSION_13
+       imply KERNEL_WERROR
+
 config GCC_USE_GRAPHITE
        bool
        prompt "Compile in support for the new Graphite framework in GCC 4.4+" if TOOLCHAINOPTS
@@ -30,21 +35,18 @@ config EXTRA_GCC_CONFIG_OPTIONS
 config GCC_DEFAULT_PIE
        bool
        prompt "Build executable with PIE enabled by default" if TOOLCHAINOPTS
-       default n
        help
            Use gcc configure option --enable-default-pie to turn on -fPIE and -pie by default.
 
 config GCC_DEFAULT_SSP
        bool
        prompt "Build executable with Stack-Smashing Protection enabled by default" if TOOLCHAINOPTS
-       default n
        help
            Use gcc configure option --enable-default-ssp to turn on -fstack-protector-strong by default.
 
 config SJLJ_EXCEPTIONS
        bool
        prompt "Use setjump()/longjump() exceptions" if TOOLCHAINOPTS
-       default n
        help
            Use old setjump()/longjump() exceptions instead of the newer
            frame unwinding exceptions handling routines.  Warning: increases
@@ -53,7 +55,6 @@ config SJLJ_EXCEPTIONS
 config INSTALL_GFORTRAN
        bool
        prompt "Build/install fortran compiler?" if TOOLCHAINOPTS
-       default n
        help
            Build/install GNU fortran compiler ?
 
@@ -61,6 +62,5 @@ config INSTALL_GCCGO
        bool
        prompt "Build/install Go compiler?" if TOOLCHAINOPTS
        depends on USE_GLIBC || BROKEN
-       default n
        help
            Build/install GNU gccgo compiler ?