summaryrefslogtreecommitdiff
path: root/config/cc/gcc.in
blob: d0ff4ab7279c9fdbf0f5f66902883adc235afda6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
# Compiler options

config CC_gcc
    select CC_SUPPORT_CXX
    select CC_SUPPORT_FORTRAN
    select CC_SUPPORT_JAVA
    select CC_SUPPORT_ADA
    select CC_SUPPORT_OBJC
    select CC_SUPPORT_OBJCXX
    help
      gcc is the full-blown GNU compiler. This is what most people will choose.
      
      gcc supports many languages, a powerful code parser, optimised binary
      output, and lots of other features.

choice
    bool
    prompt "gcc version"
# Don't remove next line
# CT_INSERT_VERSION_BELOW

config CC_V_4_4_1
    bool
    prompt "4.4.1  (EXPERIMENTAL)"
    depends on EXPERIMENTAL
    select CC_GCC_4_3_or_later
    select CC_GCC_4_4_or_later

config CC_V_4_4_0
    bool
    prompt "4.4.0 (EXPERIMENTAL)"
    depends on EXPERIMENTAL
    select CC_GCC_4_3_or_later
    select CC_GCC_4_4_or_later

config CC_V_4_3_4
    bool
    prompt "4.3.4"
    select CC_GCC_4_3_or_later

config CC_V_4_3_3
    bool
    prompt "4.3.3"
    select CC_GCC_4_3_or_later

config CC_V_4_3_2
    bool
    prompt "4.3.2"
    select CC_GCC_4_3_or_later

config CC_V_4_3_1
    bool
    prompt "4.3.1"
    select CC_GCC_4_3_or_later

config CC_V_4_3_0
    bool
    prompt "4.3.0 (EXPERIMENTAL)"
    depends on EXPERIMENTAL
    select CC_GCC_4_3_or_later

config CC_V_4_2_4
    bool
    prompt "4.2.4"

config CC_V_4_2_3
    bool
    prompt "4.2.3"

config CC_V_4_2_2
    bool
    prompt "4.2.2"

config CC_V_4_2_1
    bool
    prompt "4.2.1"

config CC_V_4_2_0
    bool
    prompt "4.2.0"

config CC_V_4_1_2
    bool
    prompt "4.1.2"

config CC_V_4_1_1
    bool
    prompt "4.1.1 (OBSOLETE)"
    depends on OBSOLETE

config CC_V_4_1_0
    bool
    prompt "4.1.0 (OBSOLETE)"
    depends on OBSOLETE

config CC_V_4_0_4
    bool
    prompt "4.0.4"

config CC_V_4_0_3
    bool
    prompt "4.0.3 (OBSOLETE)"
    depends on OBSOLETE

config CC_V_4_0_2
    bool
    prompt "4.0.2 (OBSOLETE)"
    depends on OBSOLETE

config CC_V_4_0_1
    bool
    prompt "4.0.1 (OBSOLETE)"
    depends on OBSOLETE

config CC_V_4_0_0
    bool
    prompt "4.0.0 (OBSOLETE)"
    depends on OBSOLETE

config CC_V_3_4_6
    bool
    prompt "3.4.6 (OBSOLETE)"
    depends on OBSOLETE

config CC_V_3_3_6
    bool
    prompt "3.3.6 (OBSOLETE)"
    depends on OBSOLETE

config CC_V_3_2_3
    bool
    prompt "3.2.3 (OBSOLETE)"
    depends on OBSOLETE

endchoice

config CC_GCC_4_3_or_later
    bool
    default n
    select GMP_MPFR

config CC_GCC_4_4_or_later
    bool
    default n
    select PPL_CLOOG_MPC

config CC_VERSION
    string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
    default "4.4.1" if CC_V_4_4_1
    default "4.4.0" if CC_V_4_4_0
    default "4.3.4" if CC_V_4_3_4
    default "4.3.3" if CC_V_4_3_3
    default "4.3.2" if CC_V_4_3_2
    default "4.3.1" if CC_V_4_3_1
    default "4.3.0" if CC_V_4_3_0
    default "4.2.4" if CC_V_4_2_4
    default "4.2.3" if CC_V_4_2_3
    default "4.2.2" if CC_V_4_2_2
    default "4.2.1" if CC_V_4_2_1
    default "4.2.0" if CC_V_4_2_0
    default "4.1.2" if CC_V_4_1_2
    default "4.1.1" if CC_V_4_1_1
    default "4.1.0" if CC_V_4_1_0
    default "4.0.4" if CC_V_4_0_4
    default "4.0.3" if CC_V_4_0_3
    default "4.0.2" if CC_V_4_0_2
    default "4.0.1" if CC_V_4_0_1
    default "4.0.0" if CC_V_4_0_0
    default "3.4.6" if CC_V_3_4_6
    default "3.3.6" if CC_V_3_3_6
    default "3.2.3" if CC_V_3_2_3

config CC_CXA_ATEXIT
    bool
    prompt "Use __cxa_atexit"
    default y
    depends on ! BARE_METAL
    help
      If you get the missing symbol "__cxa_atexit" when building C++ programs,
      you might want to try disabling this option.

choice
    bool
    prompt "Use sjlj for exceptions"
    default CC_SJLJ_EXCEPTIONS_CONFIGURE
    depends on ! BARE_METAL

# This config option is used nowhere in the code on purpose.
# It only serves as a choice entry to force neither using nor not using sjlj
config CC_SJLJ_EXCEPTIONS_CONFIGURE
    bool
    prompt "Let configure decide"
    help
      Let configure decide if setjmp/longjmp should be used to handle
      exceptions.
      
      Choose that if you trust configure to detect the correct settings.
      This is the default choice.

config CC_SJLJ_EXCEPTIONS_USE
    bool
    prompt "Force using sjlj"
    help
      Do use setjmp/longjmp for exceptions.
      This is gcc's --enable-sjlj-exceptions configure switch.
      
      Choose that if you want to use setjmp/longjmp to handle exceptions.

config CC_SJLJ_EXCEPTIONS_DONT_USE
    bool
    prompt "Force not using sjlj"
    help
      Do not use setjmp/longjmp for exceptions.
      This is gcc's --disable-sjlj-exceptions configure switch.
      
      Choose that if you want to not use setjmp/longjmp to handle exceptions.

endchoice

config CC_ENABLE_CXX_FLAGS
    string
    prompt "Flags to pass to --enable-cxx-flags"
    default ""
    help
      Enter here the value of the gcc's ./configure option --enable-cxx-flags.
      Leave empty if you don't know better.
      
      Note: just pass in the option _value_, that is only the part that goes
      after the '=' sign.

config CC_CORE_EXTRA_CONFIG
    string
    prompt "Core gcc extra config"
    default ""
    help
      Extra flags to pass onto ./configure when configuring the core gcc.
      
      The core gcc is a stripped down, C-only compiler needed to build
      the C library. Kinda bootstrap gcc, if you wish.

config CC_EXTRA_CONFIG
    string
    prompt "gcc extra config"
    default ""
    depends on ! BARE_METAL
    help
      Extra flags to pass onto ./configure when configuring gcc.

config CC_PKGVERSION
    string
    prompt "gcc ID string"
    depends on CC_GCC_4_3_or_later
    default "crosstool-NG-${CT_VERSION}"
    help
      Specify a string that identifies your package. You may wish to include
      a build number or build date. This version string will be included in
      the output of gcc --version.

      This is passed to the configure flag --with-pkgversion.

config CC_BUGURL
    string
    prompt "gcc bug URL"
    depends on CC_GCC_4_3_or_later
    default ""
    help
      Specify the URL that users should visit if they wish to report a bug.

config CC_LANG_JAVA_USE_ECJ
    bool
    default y
    depends on CC_LANG_JAVA
    depends on CC_GCC_4_3_or_later