2018-08-01 Jan Willem Jagersma <jwjagersma@gmail.com>
[official-gcc.git] / gcc / config / darwin.opt
blob0d733702649ee95d7b700f92e3d819a682c9f893
1 ; Processor-independent options for Darwin.
3 ; Copyright (C) 2005-2018 Free Software Foundation, Inc.
5 ; This file is part of GCC.
7 ; GCC is free software; you can redistribute it and/or modify it under
8 ; the terms of the GNU General Public License as published by the Free
9 ; Software Foundation; either version 3, or (at your option) any later
10 ; version.
12 ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 ; WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 ; FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 ; for more details.
17 ; You should have received a copy of the GNU General Public License
18 ; along with GCC; see the file COPYING3.  If not see
19 ; <http://www.gnu.org/licenses/>.
21 ; Various linker options have a -Z added so that they can get to specs
22 ; processing without interference.  Note that an option name with a
23 ; prefix that matches another option name, that also takes an
24 ; argument, being mapped to a -Z linker option, needs to be modified
25 ; so the prefix is different, otherwise a '*' after the shorter option
26 ; will match with the longer one.
28 all_load
29 Driver Alias(Zall_load)
31 allowable_client
32 Driver Separate Alias(Zallowable_client)
34 arch
35 Driver RejectNegative Separate
37 arch_errors_fatal
38 Driver Alias(Zarch_errors_fatal)
40 asm_macosx_version_min=
41 Driver RejectNegative Joined
43 bind_at_load
44 Driver Alias(Zbind_at_load)
46 bundle
47 Driver Alias(Zbundle)
49 bundle_loader
50 Driver Separate Alias(Zbundle_loader)
52 dead_strip
53 Driver Alias(Zdead_strip)
55 dependency-file
56 C ObjC C++ ObjC++ Separate Alias(MF) MissingArgError(missing filename after %qs)
58 dylib_file
59 Driver Separate Alias(Zdylib_file)
61 dylinker
62 Driver
64 dynamic
65 Driver Alias(Zdynamic)
67 dynamiclib
68 Driver Alias(Zdynamiclib)
70 exported_symbols_list
71 Driver Separate Alias(Zexported_symbols_list)
73 filelist
74 Driver RejectNegative Separate
76 findirect-virtual-calls
77 Driver RejectNegative
79 flat_namespace
80 Driver RejectNegative Alias(Zflat_namespace)
82 force_cpusubtype_ALL
83 Driver RejectNegative Alias(Zforce_cpusubtype_ALL)
85 force_flat_namespace
86 Driver RejectNegative Alias(Zforce_flat_namespace)
88 framework
89 Driver RejectNegative Separate
91 fterminated-vtables
92 Driver RejectNegative
94 gfull
95 Driver RejectNegative
97 gused
98 Driver RejectNegative
100 headerpad_max_install_names
101 Driver
103 image_base
104 Driver Separate Alias(Zimage_base)
106 init
107 Driver Separate Alias(Zinit)
109 install_name
110 Driver Separate Alias(Zinstall_name)
112 keep_private_externs
113 Driver
115 mconstant-cfstrings
116 Target Report Var(darwin_constant_cfstrings) Init(1)
117 Generate compile-time CFString objects.
119 multi_module
120 Driver RejectNegative Alias(Zmulti_module)
122 multiply_defined
123 Driver RejectNegative Separate Alias(Zmultiply_defined)
125 multiply_defined_unused
126 Driver RejectNegative Separate Alias(Zmultiplydefinedunused)
128 no_dead_strip_inits_and_terms
129 Driver Alias(Zno_dead_strip_inits_and_terms)
131 nofixprebinding
132 Driver
134 nomultidefs
135 Driver
137 noprebind
138 Driver
140 noseglinkedit
141 Driver
143 object
144 Driver
146 prebind
147 Driver
149 prebind_all_twolevel_modules
150 Driver
152 preload
153 Driver
155 private_bundle
156 Driver
158 pthread
159 Driver
161 rdynamic
162 Driver
164 seg_addr_table
165 Driver Separate Alias(Zseg_addr_table)
167 seg_addr_table_filename
168 Driver Separate Alias(Zfn_seg_addr_table_filename)
170 segaddr
171 Driver Separate Args(2) Alias(Zsegaddr)
173 seglinkedit
174 Driver
176 segs_read_only_addr
177 Driver Separate Alias(Zsegs_read_only_addr)
179 segs_read_write_addr
180 Driver Separate Alias(Zsegs_read_write_addr)
182 single_module
183 Driver Alias(Zsingle_module)
185 twolevel_namespace
186 Driver
188 twolevel_namespace_hints
189 Driver
191 umbrella
192 Driver Separate Alias(Zumbrella)
194 unexported_symbols_list
195 Driver Separate Alias(Zunexported_symbols_list)
197 weak_reference_mismatches
198 Driver Separate Alias(Zweak_reference_mismatches)
200 whatsloaded
201 Driver
203 whyload
204 Driver
207 Driver Joined
209 Mach
210 Driver
212 Wnonportable-cfstrings
213 Target Report Var(darwin_warn_nonportable_cfstrings) Init(1) Warning
214 Warn if constant CFString objects contain non-portable characters.
216 ; Use new-style pic stubs if this is true, x86 only so far.
217 matt-stubs
218 Target Report Var(darwin_macho_att_stub) Init(1)
219 Generate AT&T-style stubs for Mach-O.
221 mdynamic-no-pic
222 Target Common Report Mask(MACHO_DYNAMIC_NO_PIC)
223 Generate code suitable for executables (NOT shared libs).
225 mfix-and-continue
226 Target Report Var(darwin_fix_and_continue)
227 Generate code suitable for fast turn around debugging.
229 ; The Init here is for the convenience of GCC developers, so that cc1
230 ; and cc1plus don't crash if no -mmacosx-version-min is passed.  The
231 ; driver will always pass a -mmacosx-version-min, so in normal use the
232 ; Init is never used.
233 mmacosx-version-min=
234 Target Joined Report Var(darwin_macosx_version_min) Init(DEF_MIN_OSX_VERSION)
235 The earliest MacOS X version on which this program will run.
237 mone-byte-bool
238 Target RejectNegative Report Var(darwin_one_byte_bool)
239 Set sizeof(bool) to 1.
241 fapple-kext
242 Target Report C++ Var(flag_apple_kext)
243 Generate code for darwin loadable kernel extensions.
245 mkernel
246 Target Report Var(flag_mkernel)
247 Generate code for the kernel or loadable kernel extensions.
249 iframework
250 Target RejectNegative C ObjC C++ ObjC++ Joined Separate 
251 -iframework <dir>       Add <dir> to the end of the system framework include path.
254 Driver
256 Zall_load
257 Driver
259 Zallowable_client
260 Driver Separate
262 Zarch_errors_fatal
263 Driver
265 Zbind_at_load
266 Driver
268 Zbundle
269 Driver
271 Zbundle_loader
272 Driver Separate
274 Zdead_strip
275 Driver
277 Zdylib_file
278 Driver Separate
280 Zdynamic
281 Driver
283 Zdynamiclib
284 Driver
286 Zexported_symbols_list
287 Driver Separate
289 Zfn_seg_addr_table_filename
290 Driver Separate
292 Zflat_namespace
293 Driver
295 Zforce_cpusubtype_ALL
296 Driver
298 Zforce_flat_namespace
299 Driver
301 Zimage_base
302 Driver Separate
304 Zinit
305 Driver Separate
307 Zinstall_name
308 Driver Separate
310 Zmulti_module
311 Driver
313 Zmultiply_defined
314 Driver Separate
316 Zmultiplydefinedunused
317 Driver Separate
319 Zno_dead_strip_inits_and_terms
320 Driver
322 Zseg_addr_table
323 Driver Separate
325 Zsegaddr
326 Driver Separate Args(2)
328 Zsegs_read_only_addr
329 Driver Separate
331 Zsegs_read_write_addr
332 Driver Separate
334 Zsingle_module
335 Driver
337 Zumbrella
338 Driver Separate
340 Zunexported_symbols_list
341 Driver Separate
343 Zweak_reference_mismatches
344 Driver Separate
346 client_name
347 Driver Separate
349 compatibility_version
350 Driver Separate
352 current_version
353 Driver Separate
355 dylinker_install_name
356 Driver Separate
358 pagezero_size
359 Driver Separate
361 read_only_relocs
362 Driver Separate
364 sectalign
365 Driver Separate Args(3)
367 sectcreate
368 Driver Separate Args(3)
370 sectobjectsymbols
371 Driver Separate Args(2)
373 sectorder
374 Driver Separate Args(3)
376 seg1addr
377 Driver Separate
379 segcreate
380 Driver Separate Args(3)
382 segprot
383 Driver Separate Args(3)
385 segs_read_only_addr
386 Driver Separate
388 segs_read_write_addr
389 Driver Separate
391 sub_library
392 Driver Separate
394 sub_umbrella
395 Driver Separate
397 ; Certain aspects of code-gen may be improved / adjusted if the version of ld64
398 ; is sufficiently modern.
399 mtarget-linker
400 Target RejectNegative Joined Separate Report Var(darwin_target_linker) Init(LD64_VERSION)
401 The version of ld64 in use for this toolchain.
403 undefined
404 Driver Separate