cf96c73b386fbf3f8633dc605570a11341e17448
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gcc / Config.in.host
1 comment "GCC Options"
2
3 config BR2_GCC_NEEDS_MPC
4         bool
5
6 config BR2_GCC_SUPPORTS_GRAPHITE
7         bool
8
9 choice
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
14         help
15           Select the version of gcc you wish to use.
16
17         config BR2_GCC_VERSION_4_5_X
18                 bool "gcc 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 && \
28                         !BR2_powerpc_power8
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
38
39         config BR2_GCC_VERSION_4_7_X
40                 bool "gcc 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 && \
48                         !BR2_powerpc_power8
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
54
55         config BR2_GCC_VERSION_4_8_X
56                 bool "gcc 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
66
67         config BR2_GCC_VERSION_4_8_ARC
68                 bool "gcc 4.8-arc"
69                 # Only supported architecture
70                 depends on BR2_arc
71                 select BR2_GCC_NEEDS_MPC
72
73         config BR2_GCC_VERSION_4_9_X
74                 bool "gcc 4.9.x"
75                 # Broken or unsupported architectures
76                 depends on !BR2_arc
77                 # PR60102 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60102
78                 select BR2_GCC_NEEDS_MPC
79                 select BR2_GCC_SUPPORTS_GRAPHITE
80
81 endchoice
82
83 config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
84         bool
85         default y
86
87 config BR2_GCC_VERSION
88         string
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
94
95 config BR2_EXTRA_GCC_CONFIG_OPTIONS
96         string "Additional gcc options"
97         default ""
98         help
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.
102
103 config BR2_TOOLCHAIN_BUILDROOT_CXX
104         bool "Enable C++ support"
105         select BR2_INSTALL_LIBSTDCPP
106         help
107           Enable this option if you want your toolchain to support the
108           C++ language and you want C++ libraries to be installed on
109           your target system.
110
111 config BR2_GCC_ENABLE_TLS
112         bool "Enable compiler tls support" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
113         default y
114         depends on BR2_PTHREADS_NATIVE || BR2_TOOLCHAIN_BUILDROOT_EGLIBC || BR2_TOOLCHAIN_BUILDROOT_GLIBC
115         help
116           Enable the compiler to generate code for accessing
117           thread local storage variables
118
119 config BR2_GCC_ENABLE_LTO
120         bool "Enable compiler link-time-optimization support"
121         select BR2_BINUTILS_ENABLE_LTO
122         help
123           This option enables link-time optimization (LTO) support in
124           gcc.
125
126 config BR2_GCC_ENABLE_OPENMP
127         bool "Enable compiler OpenMP support"
128         depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
129         help
130           Enable OpenMP support for the compiler
131
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
138         help
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.
142
143           See http://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging and
144           the help of the gcc -fmudflap option for more details.
145
146           If you're unsure, leave this option disabled.
147
148 config BR2_GCC_ENABLE_GRAPHITE
149         bool "Enable graphite support"
150         depends on BR2_GCC_SUPPORTS_GRAPHITE
151         help
152           This option enables the graphite optimizations in the
153           compiler.