bump version
[buildroot.git] / toolchain / gcc / Config.in
blob2a03c690270bb095b267fff20333694096943a5e
1 # Choose gcc version.
3 comment "GCC Options"
5 choice
6         prompt "GCC compiler Version"
7         default BR2_GCC_VERSION_4_3_3
8         help
9           Select the version of gcc you wish to use.
11         config BR2_GCC_VERSION_3_4_6
12                 depends on !BR2_avr32
13                 bool "gcc 3.4.6"
15         config BR2_GCC_VERSION_4_0_4
16                 depends on !BR2_avr32 && !BR2_nios2
17                 depends on BR2_DEPRECATED
18                 bool "gcc 4.0.4"
20         config BR2_GCC_VERSION_4_1_2
21                 depends on !BR2_nios2
22                 bool "gcc 4.1.2"
24         config BR2_GCC_VERSION_4_2_0
25                 depends on !BR2_avr32 && !BR2_nios2
26                 depends on BR2_DEPRECATED
27                 bool "gcc 4.2.0"
29         config BR2_GCC_VERSION_4_2_1
30                 depends on !BR2_avr32 && !BR2_nios2
31                 depends on BR2_DEPRECATED
32                 bool "gcc 4.2.1"
34         config BR2_GCC_VERSION_4_2_2
35                 depends on !BR2_avr32 && !BR2_nios2
36                 depends on BR2_DEPRECATED
37                 bool "gcc 4.2.2"
39         config BR2_GCC_VERSION_4_2_3
40                 depends on !BR2_avr32 && !BR2_nios2
41                 depends on BR2_DEPRECATED
42                 bool "gcc 4.2.3"
44         config BR2_GCC_VERSION_4_3_0
45                 depends on !BR2_avr32 && !BR2_nios2
46                 depends on BR2_DEPRECATED
47                 bool "gcc 4.3.0"
49         config BR2_GCC_VERSION_4_3_1
50                 depends on !BR2_avr32 && !BR2_nios2
51                 depends on BR2_DEPRECATED
52                 bool "gcc 4.3.1"
54         config BR2_GCC_VERSION_4_3_2
55                 depends on !BR2_avr32 && !BR2_nios2
56                 depends on BR2_DEPRECATED
57                 bool "gcc 4.3.2"
59         config BR2_GCC_VERSION_4_3_3
60                 depends on !BR2_avr32 && !BR2_nios2
61                 bool "gcc 4.3.3"
63         config BR2_GCC_VERSION_4_4_0
64                 depends on !BR2_avr32 && !BR2_nios2
65                 bool "gcc 4.4.0 (local trunk checkout)"
67         config BR2_GCC_VERSION_4_4
68                 depends on !BR2_avr32 && !BR2_nios2
69                 select BR2_GCC_IS_SNAP
70                 bool "gcc 4.4 (snapshot)"
71 endchoice
73 config BR2_GCC_IS_SNAP
74         depends on !BR2_avr32
75         bool
76         default n
78 config BR2_GCC_SUPPORTS_SYSROOT
79         bool
80         default n if BR2_GCC_VERSION_3_4_6 || BR2_GCC_VERSION_4_0_4 || BR2_GCC_VERSION_4_1_2
81         default y if !BR2_GCC_VERSION_3_4_6 && !BR2_GCC_VERSION_4_0_4 && !BR2_GCC_VERSION_4_1_2
83 config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
84         bool
85         default n if BR2_GCC_VERSION_3_4_6 || BR2_GCC_VERSION_4_0_4 || BR2_GCC_VERSION_4_1_2 || BR2_GCC_VERSION_4_2_0 || BR2_GCC_VERSION_4_2_1 || BR2_GCC_VERSION_4_2_2 || BR2_GCC_VERSION_4_2_3
86         default y if !BR2_GCC_VERSION_3_4_6 && !BR2_GCC_VERSION_4_0_4 && !BR2_GCC_VERSION_4_1_2 && !BR2_GCC_VERSION_4_2_0 && !BR2_GCC_VERSION_4_2_1 && !BR2_GCC_VERSION_4_2_2 && !BR2_GCC_VERSION_4_2_3
88 config BR2_GCC_SNAP_DATE
89         string "GCC snapshot date"
90         default "20081010"
91         depends on BR2_GCC_IS_SNAP
92         help
93           Enter snapshot date to use for gcc.  Format is:
94           YYYYMMDD
96 config BR2_GCC_VERSION
97         string
98         default "3.4.6"     if BR2_GCC_VERSION_3_4_6
99         default "4.0.4"     if BR2_GCC_VERSION_4_0_4
100         default "4.1.2"     if BR2_GCC_VERSION_4_1_2
101         default "4.2.0"     if BR2_GCC_VERSION_4_2_0
102         default "4.2.1"     if BR2_GCC_VERSION_4_2_1
103         default "4.2.2"     if BR2_GCC_VERSION_4_2_2
104         default "4.2.3"     if BR2_GCC_VERSION_4_2_3
105         default "4.3.0"     if BR2_GCC_VERSION_4_3_0
106         default "4.3.1"     if BR2_GCC_VERSION_4_3_1
107         default "4.3.2"     if BR2_GCC_VERSION_4_3_2
108         default "4.3.3"     if BR2_GCC_VERSION_4_3_3
109         default "4.4.0"     if BR2_GCC_VERSION_4_4_0
110         default "4.4"       if BR2_GCC_VERSION_4_4
112 config BR2_TOOLCHAIN_SYSROOT
113         bool "Enable toolchain with --sysroot support"
114         depends on BR2_GCC_SUPPORTS_SYSROOT
115         default y
116         help
117           Enables --sysroot=dir for binutils and gcc.
118           Use dir as the logical root directory for headers and libraries.
119           For example, if the compiler would normally search for headers in
120           /usr/include and libraries in /usr/lib, it will instead search
121           dir/usr/include and dir/usr/lib.
123           This does not work with gcc < 4.2.0 (4.1.2 gets
124           ORIGINAL_AS_FOR_TARGET wrong)
126           Say Y here.
128 config BR2_GCC_USE_SJLJ_EXCEPTIONS
129         bool "Enable setjmp/longjmp exceptions?"
130         default n
131         help
132           For some platforms, proper stack unwinding works perfectly,
133           while other platforms must use setjmp/longjmp exceptions for
134           proper stack unwinding during exception handling.  Most people
135           can leave this set to n.
137 choice
138         prompt "GCC decimal floating types"
139         default BR2_GCC_DECNUMBER_no
140         help
141           As an extension, the GNU C Compiler supports decimal float types
142           as defined in the N1176 draft ISO/IEC WDTR24732.
144 config BR2_GCC_DECNUMBER_no
145         bool "no"
146 config BR2_GCC_DECNUMBER_yes
147         bool "yes"
148 config BR2_GCC_DECNUMBER_bid
149         bool "bid"
150 config BR2_GCC_DECNUMBER_dpd
151         bool "dpd"
152 endchoice
154 config BR2_GCC_DECNUMBER
155         string
156         default "no"  if BR2_GCC_DECNUMBER_no
157         default "yes" if BR2_GCC_DECNUMBER_yes
158         default "bid" if BR2_GCC_DECNUMBER_bid
159         default "dpd" if BR2_GCC_DECNUMBER_dpd
161 config BR2_GCC_USE_INTERWORKING
162         bool "Enable interworking support"
163         default n
164         depends on BR2_arm || BR2_armeb
165         depends on !BR2_generic_arm && !BR2_arm610 && !BR2_arm710
166         help
167           Interworking allows Thumb userspace binaries to be linked
168           against the C standard library compiled in ARM mode.
170           This is only possible on Thumb-aware architectures, i.e not
171           Generic ARM, ARM610 or ARM710.
173 config BR2_THUMB_BINARIES
174         bool "Generate Thumb binaries"
175         default n
176         depends on BR2_GCC_USE_INTERWORKING
177         help
178           Compile binaries in Thumb mode.
180 config BR2_EXTRA_GCC_CONFIG_OPTIONS
181         string "Additional cross-gcc configure options"
182         default ""
183         help
184           Any additional gcc configure options you may want to use to
185           build your cross-compiler.
187 config BR2_GCC_CROSS_CXX
188         bool "C++ cross-compiler support"
189         default n
190         help
191           Build a C++ cross-compiler
193 config BR2_GCC_CROSS_GCJ
194         bool "Java cross-compiler support"
195         default n
196         help
197           Build a java cross-compiler
199 config BR2_GCC_CROSS_FORTRAN
200         bool "Fortran cross-compiler support"
201         default n
202         depends on !BR2_avr32
203         help
204           Build a Fortran cross-compiler
206 config BR2_INSTALL_LIBSTDCPP
207         bool "Build/install c++ compiler and libstdc++?"
208         default n
209         # >= 4.2.0 work fine without LARGEFILE
210         select BR2_LARGEFILE if !BR2_GCC_SUPPORTS_SYSROOT
211         select BR2_GCC_CROSS_CXX
212         depends on !BR2_GCC_VERSION_4_3_0 && !BR2_GCC_VERSION_4_3
213         # simply not yet implemented.
214         help
215           Build/install c++ compiler and libstdc++?
217 config BR2_INSTALL_LIBGCJ
218         bool "Build/install Java compiler and runtime?"
219         default n
220         depends on !BR2_avr32 && BR2_INSTALL_LIBSTDCPP
221         select BR2_GCC_CROSS_GCJ
222         help
223           Build/install java compiler and libgcj?
225 config BR2_INSTALL_OBJC
226         bool "Build/install Objective-C compiler and runtime?"
227         default n
228         depends on !BR2_avr32
229         help
230           Build/install Objective-C compiler and runtime?
232 config BR2_INSTALL_FORTRAN
233         bool "Build/install Fortran compiler and runtime?"
234         default n
235         depends on BR2_GCC_CROSS_FORTRAN && !BR2_avr32
236         select BR2_PACKAGE_LIBMPFR
237         help
238           Build/install Fortran compiler and runtime?
239           Note that it is highly recommended NOT to use gfortran
240           from gcc older than 4.2.0
242 config BR2_GCC_SHARED_LIBGCC
243         bool "Build/install a shared libgcc?"
244         default y
245         # uClibc for alpha currently does not support shared libs
246         depends on BR2_ENABLE_SHARED && !BR2_alpha
247         help
248           Build/install a shared libgcc library