3 config BR2_GCC_NEEDS_MPC
6 config BR2_GCC_SUPPORTS_GRAPHITE
10 prompt "GCC compiler Version"
11 default BR2_GCC_VERSION_4_8_ARC if BR2_arc
12 default BR2_GCC_VERSION_4_9_X
14 Select the version of gcc you wish to use.
16 config BR2_GCC_VERSION_4_7_X
18 depends on BR2_DEPRECATED_SINCE_2016_05
19 # Broken or unsupported architectures
20 depends on !BR2_microblaze && !BR2_aarch64 && !BR2_arc \
21 && !BR2_powerpc64le && !BR2_nios2
22 # Broken or unsupported ARM cores
23 depends on !BR2_cortex_a12 && !BR2_pj4 && !BR2_cortex_a17
24 # Broken or unsupported PPC cores
25 depends on !BR2_powerpc_e5500 && !BR2_powerpc_e6500 && \
27 # SPARC -mcpu=leon3 appeared in gcc 4.8.x
28 depends on !BR2_sparc_leon3
29 # Broken or unsupported x86 cores
30 depends on !BR2_x86_jaguar && !BR2_x86_steamroller
31 # Unsupported for MIPS R6
32 depends on !BR2_mips_32r6 && !BR2_mips_64r6
33 select BR2_GCC_NEEDS_MPC
34 select BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
36 config BR2_GCC_VERSION_4_8_X
38 # Broken or unsupported architectures
39 depends on !BR2_microblaze && !BR2_arc \
40 && !BR2_powerpc64le && !BR2_nios2
41 # Broken or unsupported ARM cores
42 depends on !BR2_cortex_a12 && !BR2_cortex_a17
43 # Broken or unsupported PPC cores
44 depends on !BR2_powerpc_power8
45 # gcc-4.8.x + binutils-2.25 is broken for MIPS
46 depends on !((BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) && BR2_BINUTILS_VERSION_2_25_X)
47 # Unsupported for MIPS R6
48 depends on !BR2_mips_32r6 && !BR2_mips_64r6
49 select BR2_GCC_NEEDS_MPC
50 select BR2_GCC_SUPPORTS_GRAPHITE
51 select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
53 config BR2_GCC_VERSION_4_8_ARC
55 # Only supported architecture
57 select BR2_GCC_NEEDS_MPC
58 select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
61 config BR2_GCC_VERSION_4_9_X
63 # Broken or unsupported architectures
65 # Broken or unsupported ARM cores
66 depends on !BR2_cortex_a17
67 # Unsupported for MIPS R6
68 depends on !BR2_mips_32r6 && !BR2_mips_64r6
69 # PR60102 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60102
70 select BR2_GCC_NEEDS_MPC
71 select BR2_GCC_SUPPORTS_GRAPHITE
72 select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
74 config BR2_GCC_VERSION_5_X
76 # Broken or unsupported architectures
78 select BR2_GCC_NEEDS_MPC
79 select BR2_GCC_SUPPORTS_GRAPHITE
80 select BR2_TOOLCHAIN_GCC_AT_LEAST_5
82 config BR2_GCC_VERSION_6_X
84 # Broken or unsupported architectures
86 select BR2_GCC_NEEDS_MPC
87 select BR2_GCC_SUPPORTS_GRAPHITE
88 select BR2_TOOLCHAIN_GCC_AT_LEAST_6
92 config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
96 config BR2_GCC_VERSION
98 default "4.7.4" if BR2_GCC_VERSION_4_7_X
99 default "4.8.5" if BR2_GCC_VERSION_4_8_X
100 default "4.9.3" if BR2_GCC_VERSION_4_9_X
101 default "5.3.0" if BR2_GCC_VERSION_5_X
102 default "6.1.0" if BR2_GCC_VERSION_6_X
103 default "arc-2016.03" if BR2_GCC_VERSION_4_8_ARC
105 config BR2_EXTRA_GCC_CONFIG_OPTIONS
106 string "Additional gcc options"
109 Any additional gcc configure options you may want to
110 include. Those options are applied for all of the gcc
111 initial, gcc intermediate and gcc final passes.
113 config BR2_TOOLCHAIN_BUILDROOT_CXX
114 bool "Enable C++ support"
115 select BR2_INSTALL_LIBSTDCPP
117 Enable this option if you want your toolchain to support the
118 C++ language and you want C++ libraries to be installed on
121 config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
122 bool "Enable Fortran support"
124 Enable this option if you want your toolchain to support the
125 Fortran language and you want Fortran libraries to be
126 installed on your target system.
128 config BR2_GCC_ENABLE_TLS
129 bool "Enable compiler tls support" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
131 depends on BR2_PTHREADS_NATIVE || BR2_TOOLCHAIN_BUILDROOT_GLIBC
133 Enable the compiler to generate code for accessing
134 thread local storage variables
136 config BR2_GCC_ENABLE_LTO
137 bool "Enable compiler link-time-optimization support"
138 select BR2_BINUTILS_ENABLE_LTO
140 This option enables link-time optimization (LTO) support in
143 config BR2_GCC_ENABLE_OPENMP
144 bool "Enable compiler OpenMP support"
145 depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
147 Enable OpenMP support for the compiler
149 config BR2_GCC_ENABLE_LIBMUDFLAP
150 bool "Enable libmudflap support"
151 # There are architectures, or specific configurations for
152 # which mudflap is not supported.
153 depends on !BR2_ARM_INSTRUCTIONS_THUMB && !BR2_powerpc_SPE
154 depends on !BR2_GCC_VERSION_4_9_X
155 depends on !BR2_GCC_VERSION_5_X
156 depends on !BR2_GCC_VERSION_6_X
158 libmudflap is a gcc library used for the mudflap pointer
159 debugging functionality. It is only needed if you intend to
160 use the -fmudflap gcc flag.
162 See http://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging and
163 the help of the gcc -fmudflap option for more details.
165 If you're unsure, leave this option disabled.
167 config BR2_GCC_ENABLE_GRAPHITE
168 bool "Enable graphite support"
169 depends on BR2_GCC_SUPPORTS_GRAPHITE
171 This option enables the graphite optimizations in the