4 prompt "GCC compiler Version"
5 default BR2_GCC_VERSION_ARC if BR2_arc
6 default BR2_GCC_VERSION_OR1K if BR2_or1k
7 default BR2_GCC_VERSION_6_X
9 Select the version of gcc you wish to use.
11 config BR2_GCC_VERSION_ARC
13 # Only supported architecture
15 select BR2_TOOLCHAIN_GCC_AT_LEAST_7
17 config BR2_GCC_VERSION_OR1K
19 # Only supported architecture
21 select BR2_TOOLCHAIN_GCC_AT_LEAST_5
23 config BR2_GCC_VERSION_4_9_X
25 depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_5
26 # Broken or unsupported architectures
29 # musl on microblaze, ppc64 and mips64 unsupported
30 depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_microblazeel || BR2_microblazebe))
31 depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64le))
32 depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
33 # glibc >= 2.26 needs gcc >= 6.2
34 depends on !(BR2_TOOLCHAIN_USES_GLIBC && BR2_powerpc64le)
35 select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
37 config BR2_GCC_VERSION_5_X
39 depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_6
40 # Broken or unsupported architectures
43 # musl on ppc64 and mips64 unsupported
44 depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64le))
45 depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
46 # glibc >= 2.26 needs gcc >= 6.2
47 depends on !(BR2_TOOLCHAIN_USES_GLIBC && BR2_powerpc64le)
48 select BR2_TOOLCHAIN_GCC_AT_LEAST_5
50 config BR2_GCC_VERSION_6_X
52 depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_7
53 # Broken or unsupported architectures
56 select BR2_TOOLCHAIN_GCC_AT_LEAST_6
58 config BR2_GCC_VERSION_7_X
60 # Broken or unsupported architectures
62 select BR2_TOOLCHAIN_GCC_AT_LEAST_7
66 config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
70 config BR2_GCC_VERSION
72 default "4.9.4" if BR2_GCC_VERSION_4_9_X
73 default "5.5.0" if BR2_GCC_VERSION_5_X
74 default "6.4.0" if BR2_GCC_VERSION_6_X
75 default "7.3.0" if BR2_GCC_VERSION_7_X
76 default "arc-2018.03-rc1" if BR2_GCC_VERSION_ARC
77 default "or1k-musl-5.4.0-20170218" if BR2_GCC_VERSION_OR1K
79 config BR2_EXTRA_GCC_CONFIG_OPTIONS
80 string "Additional gcc options"
83 Any additional gcc configure options you may want to
84 include. Those options are applied for all of the gcc
85 initial, gcc intermediate and gcc final passes.
87 config BR2_TOOLCHAIN_BUILDROOT_CXX
88 bool "Enable C++ support"
89 select BR2_INSTALL_LIBSTDCPP
91 Enable this option if you want your toolchain to support the
92 C++ language and you want C++ libraries to be installed on
95 comment "Fortran support needs a toolchain w/ wchar"
96 depends on BR2_TOOLCHAIN_HAS_LIBQUADMATH
97 depends on !BR2_USE_WCHAR # libquadmath
99 config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
100 bool "Enable Fortran support"
101 # on architecture building libquadmath, wchar is required
102 depends on !BR2_TOOLCHAIN_HAS_LIBQUADMATH || \
103 (BR2_TOOLCHAIN_HAS_LIBQUADMATH && BR2_USE_WCHAR)
104 select BR2_TOOLCHAIN_HAS_FORTRAN
106 Enable this option if you want your toolchain to support the
107 Fortran language and you want Fortran libraries to be
108 installed on your target system.
110 config BR2_GCC_ENABLE_LTO
111 bool "Enable compiler link-time-optimization support"
112 select BR2_BINUTILS_ENABLE_LTO
114 This option enables link-time optimization (LTO) support in
117 config BR2_GCC_ENABLE_OPENMP
118 bool "Enable compiler OpenMP support"
119 depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
121 Enable OpenMP support for the compiler
123 config BR2_GCC_ENABLE_LIBMUDFLAP
124 bool "Enable libmudflap support"
125 # There are architectures, or specific configurations for
126 # which mudflap is not supported.
127 depends on !BR2_ARM_INSTRUCTIONS_THUMB && !BR2_powerpc_SPE
128 depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
130 libmudflap is a gcc library used for the mudflap pointer
131 debugging functionality. It is only needed if you intend to
132 use the -fmudflap gcc flag.
134 See http://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging and
135 the help of the gcc -fmudflap option for more details.
137 If you're unsure, leave this option disabled.
139 config BR2_GCC_ENABLE_GRAPHITE
140 bool "Enable graphite support"
141 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
143 This option enables the graphite optimizations in the
146 comment "graphite support needs gcc >= 5.x"
147 depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5