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 if BR2_microblaze || BR2_powerpc64le
13 default BR2_GCC_VERSION_4_8_X
15 Select the version of gcc you wish to use.
17 config BR2_GCC_VERSION_4_5_X
19 depends on BR2_DEPRECATED_SINCE_2015_05
20 # Broken or unsupported architectures
21 depends on !BR2_microblaze && !BR2_aarch64 && !BR2_arc \
22 && !BR2_powerpc64le && !BR2_nios2
23 # Broken or unsupported ARM cores
24 depends on !BR2_cortex_a7 && !BR2_cortex_a12 && \
25 !BR2_cortex_a15 && !BR2_fa526 && !BR2_pj4
26 # Broken or unsupported PPC cores
27 depends on !BR2_powerpc_e5500 && !BR2_powerpc_e6500 && \
29 # SPARC -mcpu=leon3 appeared in gcc 4.8.x
30 depends on !BR2_sparc_leon3
31 # Broken or unsupported X86 cores
32 depends on !BR2_x86_corei7 && !BR2_x86_jaguar && !BR2_x86_steamroller
33 # ARM EABIhf support appeared in gcc 4.6
34 depends on !BR2_ARM_EABIHF
35 # musl patches only for gcc 4.7+
36 depends on !BR2_TOOLCHAIN_BUILDROOT_MUSL
37 select BR2_GCC_NEEDS_MPC
39 config BR2_GCC_VERSION_4_7_X
41 # Broken or unsupported architectures
42 depends on !BR2_microblaze && !BR2_aarch64 && !BR2_arc \
43 && !BR2_powerpc64le && !BR2_nios2
44 # Broken or unsupported ARM cores
45 depends on !BR2_cortex_a12 && !BR2_pj4
46 # Broken or unsupported PPC cores
47 depends on !BR2_powerpc_e5500 && !BR2_powerpc_e6500 && \
49 # SPARC -mcpu=leon3 appeared in gcc 4.8.x
50 depends on !BR2_sparc_leon3
51 # Broken or unsupported x86 cores
52 depends on !BR2_x86_jaguar && !BR2_x86_steamroller
53 select BR2_GCC_NEEDS_MPC
55 config BR2_GCC_VERSION_4_8_X
57 # Broken or unsupported architectures
58 depends on !BR2_microblaze && !BR2_arc \
59 && !BR2_powerpc64le && !BR2_nios2
60 # Broken or unsupported ARM cores
61 depends on !BR2_cortex_a12
62 # Broken or unsupported PPC cores
63 depends on !BR2_powerpc_power8
64 select BR2_GCC_NEEDS_MPC
65 select BR2_GCC_SUPPORTS_GRAPHITE
67 config BR2_GCC_VERSION_4_8_ARC
69 # Only supported architecture
71 select BR2_GCC_NEEDS_MPC
73 config BR2_GCC_VERSION_4_9_X
75 # Broken or unsupported architectures
77 # PR60102 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60102
78 select BR2_GCC_NEEDS_MPC
79 select BR2_GCC_SUPPORTS_GRAPHITE
83 config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
87 config BR2_GCC_VERSION
89 default "4.5.4" if BR2_GCC_VERSION_4_5_X
90 default "4.7.4" if BR2_GCC_VERSION_4_7_X
91 default "4.8.4" if BR2_GCC_VERSION_4_8_X
92 default "4.9.2" if BR2_GCC_VERSION_4_9_X
93 default "arc-2014.12" if BR2_GCC_VERSION_4_8_ARC
95 config BR2_EXTRA_GCC_CONFIG_OPTIONS
96 string "Additional gcc options"
99 Any additional gcc configure options you may want to
100 include. Those options are applied for all of the gcc
101 initial, gcc intermediate and gcc final passes.
103 config BR2_TOOLCHAIN_BUILDROOT_CXX
104 bool "Enable C++ support"
105 select BR2_INSTALL_LIBSTDCPP
107 Enable this option if you want your toolchain to support the
108 C++ language and you want C++ libraries to be installed on
111 config BR2_GCC_ENABLE_TLS
112 bool "Enable compiler tls support" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
114 depends on BR2_PTHREADS_NATIVE || BR2_TOOLCHAIN_BUILDROOT_EGLIBC || BR2_TOOLCHAIN_BUILDROOT_GLIBC
116 Enable the compiler to generate code for accessing
117 thread local storage variables
119 config BR2_GCC_ENABLE_LTO
120 bool "Enable compiler link-time-optimization support"
121 select BR2_BINUTILS_ENABLE_LTO
123 This option enables link-time optimization (LTO) support in
126 config BR2_GCC_ENABLE_OPENMP
127 bool "Enable compiler OpenMP support"
128 depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
130 Enable OpenMP support for the compiler
132 config BR2_GCC_ENABLE_LIBMUDFLAP
133 bool "Enable libmudflap support"
134 # There are architectures, or specific configurations for
135 # which mudflap is not supported.
136 depends on !BR2_ARM_INSTRUCTIONS_THUMB && !BR2_powerpc_SPE
137 depends on !BR2_GCC_VERSION_4_9_X
139 libmudflap is a gcc library used for the mudflap pointer
140 debugging functionality. It is only needed if you intend to
141 use the -fmudflap gcc flag.
143 See http://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging and
144 the help of the gcc -fmudflap option for more details.
146 If you're unsure, leave this option disabled.
148 config BR2_GCC_ENABLE_GRAPHITE
149 bool "Enable graphite support"
150 depends on BR2_GCC_SUPPORTS_GRAPHITE
152 This option enables the graphite optimizations in the