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 && !BR2_bfin
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 && !BR2_bfin
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
64 depends on !BR2_arc && !BR2_bfin
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
77 depends on !BR2_arc && !BR2_bfin
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 # Indicates if GCC for architecture supports --with-{arch,cpu,..} to
93 # set default CFLAGS, otherwise values will be used by toolchain
95 config BR2_GCC_ARCH_HAS_CONFIGURABLE_DEFAULTS
97 default y if !BR2_bfin
99 config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
103 config BR2_GCC_VERSION
105 default "4.7.4" if BR2_GCC_VERSION_4_7_X
106 default "4.8.5" if BR2_GCC_VERSION_4_8_X
107 default "4.9.3" if BR2_GCC_VERSION_4_9_X
108 default "5.4.0" if BR2_GCC_VERSION_5_X
109 default "6.1.0" if BR2_GCC_VERSION_6_X
110 default "arc-2016.09-eng006" if BR2_GCC_VERSION_4_8_ARC
112 config BR2_EXTRA_GCC_CONFIG_OPTIONS
113 string "Additional gcc options"
116 Any additional gcc configure options you may want to
117 include. Those options are applied for all of the gcc
118 initial, gcc intermediate and gcc final passes.
120 config BR2_TOOLCHAIN_BUILDROOT_CXX
121 bool "Enable C++ support"
122 select BR2_INSTALL_LIBSTDCPP
124 Enable this option if you want your toolchain to support the
125 C++ language and you want C++ libraries to be installed on
128 comment "Fortran support needs a toolchain w/ wchar"
129 depends on BR2_TOOLCHAIN_HAS_LIBQUADMATH
130 depends on !BR2_USE_WCHAR # libquadmath
132 config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
133 bool "Enable Fortran support"
134 # on architecture building libquadmath, wchar is required
135 depends on !BR2_TOOLCHAIN_HAS_LIBQUADMATH || \
136 (BR2_TOOLCHAIN_HAS_LIBQUADMATH && BR2_USE_WCHAR)
137 select BR2_TOOLCHAIN_HAS_FORTRAN
139 Enable this option if you want your toolchain to support the
140 Fortran language and you want Fortran libraries to be
141 installed on your target system.
143 config BR2_GCC_ENABLE_TLS
144 bool "Enable compiler tls support" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
146 depends on BR2_PTHREADS_NATIVE || BR2_TOOLCHAIN_BUILDROOT_GLIBC
148 Enable the compiler to generate code for accessing
149 thread local storage variables
151 config BR2_GCC_ENABLE_LTO
152 bool "Enable compiler link-time-optimization support"
153 select BR2_BINUTILS_ENABLE_LTO
155 This option enables link-time optimization (LTO) support in
158 config BR2_GCC_ENABLE_OPENMP
159 bool "Enable compiler OpenMP support"
160 depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
162 Enable OpenMP support for the compiler
164 config BR2_GCC_ENABLE_LIBMUDFLAP
165 bool "Enable libmudflap support"
166 # There are architectures, or specific configurations for
167 # which mudflap is not supported.
168 depends on !BR2_ARM_INSTRUCTIONS_THUMB && !BR2_powerpc_SPE
169 depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
171 libmudflap is a gcc library used for the mudflap pointer
172 debugging functionality. It is only needed if you intend to
173 use the -fmudflap gcc flag.
175 See http://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging and
176 the help of the gcc -fmudflap option for more details.
178 If you're unsure, leave this option disabled.
180 config BR2_GCC_ENABLE_GRAPHITE
181 bool "Enable graphite support"
182 depends on BR2_GCC_SUPPORTS_GRAPHITE
184 This option enables the graphite optimizations in the