toolchain/gcc: use version 7.x for x86 by default
[openwrt/openwrt.git] / toolchain / gcc / Config.in
1 # Choose gcc version.
2
3 choice
4 prompt "GCC compiler Version" if TOOLCHAINOPTS
5 default GCC_USE_VERSION_7_1_ARC if arc
6 default GCC_USE_VERSION_7 if x86_64 || i386
7 default GCC_USE_VERSION_5
8 help
9 Select the version of gcc you wish to use.
10
11 config GCC_USE_VERSION_7_1_ARC
12 select GCC_VERSION_7_1_ARC
13 bool "gcc 7.1.x with support of ARC cores"
14 depends on arc
15
16 config GCC_USE_VERSION_5
17 bool "gcc 5.x"
18 depends on !arc
19
20 config GCC_USE_VERSION_6
21 bool "gcc 6.x"
22 depends on !arc
23
24 config GCC_USE_VERSION_7
25 bool "gcc 7.x"
26 depends on !arc
27
28 endchoice
29
30 config GCC_USE_GRAPHITE
31 bool
32 prompt "Compile in support for the new Graphite framework in GCC 4.4+" if TOOLCHAINOPTS
33
34 config EXTRA_GCC_CONFIG_OPTIONS
35 string
36 prompt "Additional gcc configure options" if TOOLCHAINOPTS
37 default ""
38 help
39 Any additional gcc options you may want to include....
40
41 config GCC_DEFAULT_PIE
42 bool
43 prompt "Build executable with PIE enabled by default" if TOOLCHAINOPTS
44 depends on !GCC_USE_VERSION_5
45 default n
46 help
47 Use gcc configure option --enable-default-pie to turn on -fPIE and -pie by default.
48
49 config GCC_DEFAULT_SSP
50 bool
51 prompt "Build executable with Stack-Smashing Protection enabled by default" if TOOLCHAINOPTS
52 default n
53 help
54 Use gcc configure option --enable-default-ssp to turn on -fstack-protector-strong by default.
55
56 config GCC_LIBSSP
57 bool
58 prompt "Build gcc libssp" if TOOLCHAINOPTS
59 depends on !USE_MUSL
60 default y if !USE_MUSL
61 help
62 Enable Stack-Smashing Protection support
63
64 config SJLJ_EXCEPTIONS
65 bool
66 prompt "Use setjump()/longjump() exceptions" if TOOLCHAINOPTS
67 default n
68 help
69 Use old setjump()/longjump() exceptions instead of the newer
70 frame unwinding exceptions handling routines. Warning: increases
71 code size and runtime memory usage.
72
73 config INSTALL_GFORTRAN
74 bool
75 prompt "Build/install fortran compiler?" if TOOLCHAINOPTS
76 default n
77 help
78 Build/install GNU fortran compiler ?
79
80 config INSTALL_GCCGO
81 bool
82 prompt "Build/install Go compiler?" if TOOLCHAINOPTS
83 depends on USE_GLIBC || BROKEN
84 default n
85 help
86 Build/install GNU gccgo compiler ?