]>
Commit | Line | Data |
---|---|---|
d7b42618 | 1 | ; Options for the language- and target-independent parts of the compiler. |
50431bc4 | 2 | |
cd280abb | 3 | ; Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. |
d7b42618 NB |
4 | ; |
5 | ; This file is part of GCC. | |
6 | ; | |
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 2, or (at your option) any later | |
10 | ; version. | |
11 | ; | |
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. | |
16 | ; | |
17 | ; You should have received a copy of the GNU General Public License | |
18 | ; along with GCC; see the file COPYING. If not, write to the Free | |
19 | ; Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
20 | ; 02111-1307, USA. | |
21 | ||
7b086b11 | 22 | ; See c.opt for a description of this file's format. |
d7b42618 NB |
23 | |
24 | ; Please try to keep this file in ASCII collating order. | |
25 | ||
d185d268 NB |
26 | -help |
27 | Common | |
cf03fd63 | 28 | Display this information |
d185d268 | 29 | |
903caebf NB |
30 | -param |
31 | Common Separate | |
744e6f33 | 32 | --param <param>=<value> Set parameter <param> to value. See below for a complete list of parameters |
903caebf | 33 | |
d185d268 NB |
34 | -target-help |
35 | Common | |
36 | ||
37 | -version | |
38 | Common | |
39 | ||
40 | G | |
7b086b11 | 41 | Common Joined Separate UInteger |
cf03fd63 | 42 | -G<number> Put global and static data smaller than <number> bytes into a special section (on some targets) |
d185d268 | 43 | |
903caebf NB |
44 | O |
45 | Common JoinedOrMissing | |
cf03fd63 | 46 | -O<number> Set optimization level to <number> |
903caebf NB |
47 | |
48 | Os | |
49 | Common | |
cf03fd63 | 50 | Optimize for space rather than speed |
903caebf NB |
51 | |
52 | W | |
53 | Common RejectNegative | |
28786366 | 54 | This switch is deprecated; use -Wextra instead |
903caebf | 55 | |
e01cc6dc | 56 | Waggregate-return |
50431bc4 | 57 | Common Var(warn_aggregate_return) |
28786366 | 58 | Warn about returning structures, unions or arrays |
e01cc6dc NB |
59 | |
60 | Wcast-align | |
50431bc4 | 61 | Common Var(warn_cast_align) |
28786366 | 62 | Warn about pointer casts which increase alignment |
e01cc6dc NB |
63 | |
64 | Wdeprecated-declarations | |
50431bc4 | 65 | Common Var(warn_deprecated_decl) Init(1) |
28786366 | 66 | Warn about uses of __attribute__((deprecated)) declarations |
e01cc6dc NB |
67 | |
68 | Wdisabled-optimization | |
50431bc4 | 69 | Common Var(warn_disabled_optimization) |
28786366 | 70 | Warn when an optimization pass is disabled |
e01cc6dc NB |
71 | |
72 | Werror | |
50431bc4 | 73 | Common Var(warnings_are_errors) |
28786366 | 74 | Treat all warnings as errors |
e01cc6dc | 75 | |
903caebf NB |
76 | Wextra |
77 | Common | |
cf03fd63 | 78 | Print extra (possibly unwanted) warnings |
903caebf | 79 | |
c65a01af | 80 | Wfatal-errors |
50431bc4 | 81 | Common Var(flag_fatal_errors) |
c65a01af RG |
82 | Exit on the first error occurred |
83 | ||
e01cc6dc | 84 | Winline |
50431bc4 | 85 | Common Var(warn_inline) |
28786366 | 86 | Warn when an inlined function cannot be inlined |
e01cc6dc NB |
87 | |
88 | Wlarger-than- | |
89 | Common RejectNegative Joined UInteger | |
cf03fd63 | 90 | -Wlarger-than-<number> Warn if an object is larger than <number> bytes |
e01cc6dc NB |
91 | |
92 | Wmissing-noreturn | |
50431bc4 | 93 | Common Var(warn_missing_noreturn) |
28786366 | 94 | Warn about functions which might be candidates for __attribute__((noreturn)) |
e01cc6dc NB |
95 | |
96 | Wpacked | |
50431bc4 | 97 | Common Var(warn_packed) |
28786366 | 98 | Warn when the packed attribute has no effect on struct layout |
e01cc6dc NB |
99 | |
100 | Wpadded | |
50431bc4 | 101 | Common Var(warn_padded) |
28786366 | 102 | Warn when padding is required to align structure members |
e01cc6dc NB |
103 | |
104 | Wshadow | |
50431bc4 | 105 | Common Var(warn_shadow) |
28786366 | 106 | Warn when one local variable shadows another |
e01cc6dc NB |
107 | |
108 | Wstrict-aliasing | |
109 | Common | |
28786366 | 110 | Warn about code which might break strict aliasing rules |
e01cc6dc | 111 | |
5399d643 JW |
112 | Wstrict-aliasing= |
113 | Common Joined UInteger | |
114 | Warn about code which might break strict aliasing rules | |
115 | ||
e01cc6dc | 116 | Wswitch |
50431bc4 | 117 | Common Var(warn_switch) |
28786366 | 118 | Warn about enumerated switches, with no default, missing a case |
e01cc6dc NB |
119 | |
120 | Wswitch-default | |
50431bc4 | 121 | Common Var(warn_switch_default) |
28786366 | 122 | Warn about enumerated switches missing a \"default:\" statement |
e01cc6dc NB |
123 | |
124 | Wswitch-enum | |
50431bc4 | 125 | Common Var(warn_switch_enum) |
28786366 | 126 | Warn about all enumerated switches missing a specific case |
e01cc6dc NB |
127 | |
128 | Wsystem-headers | |
50431bc4 | 129 | Common Var(warn_system_headers) |
f3fdaec4 | 130 | Do not suppress warnings from system headers |
e01cc6dc NB |
131 | |
132 | Wuninitialized | |
50431bc4 | 133 | Common Var(warn_uninitialized) |
28786366 | 134 | Warn about uninitialized automatic variables |
e01cc6dc NB |
135 | |
136 | Wunreachable-code | |
50431bc4 | 137 | Common Var(warn_notreached) |
28786366 | 138 | Warn about code that will never be executed |
e01cc6dc | 139 | |
903caebf NB |
140 | Wunused |
141 | Common | |
cf03fd63 | 142 | Enable all -Wunused- warnings |
903caebf | 143 | |
e01cc6dc | 144 | Wunused-function |
50431bc4 | 145 | Common Var(warn_unused_function) |
28786366 | 146 | Warn when a function is unused |
e01cc6dc NB |
147 | |
148 | Wunused-label | |
50431bc4 | 149 | Common Var(warn_unused_label) |
28786366 | 150 | Warn when a label is unused |
e01cc6dc NB |
151 | |
152 | Wunused-parameter | |
50431bc4 | 153 | Common Var(warn_unused_parameter) |
28786366 | 154 | Warn when a function parameter is unused |
e01cc6dc NB |
155 | |
156 | Wunused-value | |
50431bc4 | 157 | Common Var(warn_unused_value) |
28786366 | 158 | Warn when an expression value is unused |
e01cc6dc NB |
159 | |
160 | Wunused-variable | |
50431bc4 | 161 | Common Var(warn_unused_variable) |
28786366 | 162 | Warn when a variable is unused |
e01cc6dc | 163 | |
d185d268 NB |
164 | aux-info |
165 | Common Separate | |
cf03fd63 | 166 | -aux-info <file> Emit declaration information into <file> |
d185d268 NB |
167 | |
168 | aux-info= | |
169 | Common Joined | |
170 | ||
171 | auxbase | |
172 | Common Separate | |
173 | ||
174 | auxbase-strip | |
175 | Common Separate | |
176 | ||
177 | d | |
178 | Common Joined | |
cf03fd63 | 179 | -d<letters> Enable dumps from specific passes of the compiler |
d185d268 NB |
180 | |
181 | dumpbase | |
182 | Common Separate | |
cf03fd63 | 183 | -dumpbase <file> Set the file basename to be used for dumps |
d185d268 | 184 | |
31b66477 KC |
185 | ; The version of the C++ ABI in use. The following values are allowed: |
186 | ; | |
187 | ; 0: The version of the ABI believed most conformant with the C++ ABI | |
188 | ; specification. This ABI may change as bugs are discovered and fixed. | |
189 | ; Therefore, 0 will not necessarily indicate the same ABI in different | |
190 | ; versions of G++. | |
191 | ; | |
192 | ; 1: The version of the ABI first used in G++ 3.2. | |
193 | ; | |
194 | ; Additional positive integers will be assigned as new versions of | |
195 | ; the ABI become the default version of the ABI. | |
57782ad8 | 196 | fabi-version= |
50431bc4 | 197 | Common Joined UInteger Var(flag_abi_version) Init(2) |
57782ad8 | 198 | |
6ff3a151 | 199 | falign-functions |
50431bc4 | 200 | Common Report Var(align_functions,0) |
f3fdaec4 | 201 | Align the start of functions |
6ff3a151 | 202 | |
058de654 NB |
203 | falign-functions= |
204 | Common RejectNegative Joined UInteger | |
205 | ||
6ff3a151 | 206 | falign-jumps |
50431bc4 | 207 | Common Report Var(align_jumps,0) |
f3fdaec4 | 208 | Align labels which are only reached by jumping |
6ff3a151 | 209 | |
058de654 NB |
210 | falign-jumps= |
211 | Common RejectNegative Joined UInteger | |
212 | ||
6ff3a151 | 213 | falign-labels |
50431bc4 | 214 | Common Report Var(align_labels,0) |
f3fdaec4 | 215 | Align all labels |
6ff3a151 | 216 | |
058de654 NB |
217 | falign-labels= |
218 | Common RejectNegative Joined UInteger | |
219 | ||
6ff3a151 | 220 | falign-loops |
50431bc4 | 221 | Common Report Var(align_loops) |
f3fdaec4 | 222 | Align the start of loops |
6ff3a151 | 223 | |
058de654 NB |
224 | falign-loops= |
225 | Common RejectNegative Joined UInteger | |
226 | ||
31b66477 KC |
227 | ; This flag is only tested if alias checking is enabled. |
228 | ; 0 if pointer arguments may alias each other. True in C. | |
229 | ; 1 if pointer arguments may not alias each other but may alias | |
230 | ; global variables. | |
231 | ; 2 if pointer arguments may not alias each other and may not | |
232 | ; alias global variables. True in Fortran. | |
233 | ; The value is ignored if flag_alias_check is 0. | |
6ff3a151 | 234 | fargument-alias |
50431bc4 | 235 | Common Report Var(flag_argument_noalias,0) |
f3fdaec4 | 236 | Specify that arguments may alias each other and globals |
6ff3a151 NB |
237 | |
238 | fargument-noalias | |
50431bc4 | 239 | Common Report Var(flag_argument_noalias,1) VarExists |
f3fdaec4 | 240 | Assume arguments may alias globals but not each other |
6ff3a151 NB |
241 | |
242 | fargument-noalias-global | |
50431bc4 | 243 | Common Report Var(flag_argument_noalias,2) VarExists |
f3fdaec4 | 244 | Assume arguments alias neither each other nor globals |
6ff3a151 NB |
245 | |
246 | fasynchronous-unwind-tables | |
50431bc4 | 247 | Common Report Var(flag_asynchronous_unwind_tables) |
f3fdaec4 | 248 | Generate unwind tables that are exact at each instruction boundary |
6ff3a151 | 249 | |
31b66477 KC |
250 | ; -fcheck-bounds causes gcc to generate array bounds checks. |
251 | ; For C, C++ and ObjC: defaults off. | |
252 | ; For Java: defaults to on. | |
253 | ; For Fortran: defaults to off. | |
6ff3a151 | 254 | fbounds-check |
50431bc4 | 255 | Common Report Var(flag_bounds_check) |
f3fdaec4 | 256 | Generate code to check bounds before indexing arrays |
6ff3a151 NB |
257 | |
258 | fbranch-count-reg | |
50431bc4 | 259 | Common Report Var(flag_branch_on_count_reg) Init(1) |
f3fdaec4 | 260 | Replace add, compare, branch with branch on count register |
6ff3a151 NB |
261 | |
262 | fbranch-probabilities | |
50431bc4 | 263 | Common Report Var(flag_branch_probabilities) |
f3fdaec4 | 264 | Use profiling information for branch probabilities |
6ff3a151 | 265 | |
de32c0cb | 266 | fbranch-target-load-optimize |
50431bc4 | 267 | Common Report Var(flag_branch_target_load_optimize) |
f3fdaec4 | 268 | Perform branch target load optimization before prologue / epilogue threading |
de32c0cb NB |
269 | |
270 | fbranch-target-load-optimize2 | |
50431bc4 | 271 | Common Report Var(flag_branch_target_load_optimize2) |
f3fdaec4 | 272 | Perform branch target load optimization after prologue / epilogue threading |
de32c0cb | 273 | |
1194fc79 | 274 | fbtr-bb-exclusive |
50431bc4 | 275 | Common Report Var(flag_btr_bb_exclusive) |
1194fc79 R |
276 | Restrict target load migration not to re-use registers in any basic block |
277 | ||
058de654 NB |
278 | fcall-saved- |
279 | Common Joined RejectNegative | |
cf03fd63 | 280 | -fcall-saved-<register> Mark <register> as being preserved across functions |
058de654 NB |
281 | |
282 | fcall-used- | |
283 | Common Joined RejectNegative | |
cf03fd63 | 284 | -fcall-used-<register> Mark <register> as being corrupted by function calls |
058de654 | 285 | |
31b66477 KC |
286 | ; Nonzero for -fcaller-saves: allocate values in regs that need to |
287 | ; be saved across function calls, if that produces overall better code. | |
288 | ; Optional now, so people can test it. | |
de32c0cb | 289 | fcaller-saves |
50431bc4 | 290 | Common Report Var(flag_caller_saves) |
f3fdaec4 | 291 | Save registers around function calls |
de32c0cb | 292 | |
6ff3a151 | 293 | fcommon |
50431bc4 | 294 | Common Report Var(flag_no_common,0) |
f3fdaec4 | 295 | Do not put uninitialized globals in the common section |
6ff3a151 NB |
296 | |
297 | fcprop-registers | |
50431bc4 | 298 | Common Report Var(flag_cprop_registers) |
f3fdaec4 | 299 | Perform a register copy-propagation optimization pass |
6ff3a151 | 300 | |
de32c0cb | 301 | fcrossjumping |
50431bc4 | 302 | Common Report Var(flag_crossjumping) |
f3fdaec4 | 303 | Perform cross-jumping optimization |
de32c0cb NB |
304 | |
305 | fcse-follow-jumps | |
50431bc4 | 306 | Common Report Var(flag_cse_follow_jumps) |
f3fdaec4 | 307 | When running CSE, follow jumps to their targets |
de32c0cb NB |
308 | |
309 | fcse-skip-blocks | |
50431bc4 | 310 | Common Report Var(flag_cse_skip_blocks) |
f3fdaec4 | 311 | When running CSE, follow conditional jumps |
de32c0cb | 312 | |
c7463669 RH |
313 | fcx-limited-range |
314 | Common Report Var(flag_cx_limited_range) | |
315 | Omit range reduction step when performing complex division | |
316 | ||
6ff3a151 | 317 | fdata-sections |
50431bc4 | 318 | Common Report Var(flag_data_sections) |
f3fdaec4 | 319 | Place data items into their own section |
6ff3a151 | 320 | |
31b66477 KC |
321 | ; Nonzero for -fdefer-pop: don't pop args after each function call |
322 | ; instead save them up to pop many calls' args with one insns. | |
de32c0cb | 323 | fdefer-pop |
50431bc4 | 324 | Common Report Var(flag_defer_pop) |
f3fdaec4 | 325 | Defer popping functions args from stack until later |
de32c0cb NB |
326 | |
327 | fdelayed-branch | |
50431bc4 | 328 | Common Report Var(flag_delayed_branch) |
f3fdaec4 | 329 | Attempt to fill delay slots of branch instructions |
de32c0cb NB |
330 | |
331 | fdelete-null-pointer-checks | |
50431bc4 | 332 | Common Report Var(flag_delete_null_pointer_checks) |
f3fdaec4 | 333 | Delete useless null pointer checks |
de32c0cb NB |
334 | |
335 | fdiagnostics-show-location= | |
336 | Common Joined RejectNegative | |
cf03fd63 | 337 | -fdiagnostics-show-location=[once|every-line] How often to emit source location at the beginning of line-wrapped diagnostics |
de32c0cb | 338 | |
6de9cd9a DN |
339 | fdump- |
340 | Common Joined RejectNegative | |
341 | -fdump-<type> Dump various compiler internals to a file | |
342 | ||
6ff3a151 | 343 | fdump-unnumbered |
50431bc4 | 344 | Common Report Var(flag_dump_unnumbered) VarExists |
f3fdaec4 | 345 | Suppress output of instruction numbers and line number notes in debugging dumps |
6ff3a151 | 346 | |
de32c0cb | 347 | feliminate-dwarf2-dups |
50431bc4 | 348 | Common Report Var(flag_eliminate_dwarf2_dups) |
f3fdaec4 | 349 | Perform DWARF2 duplicate elimination |
de32c0cb | 350 | |
6a08f7b3 | 351 | feliminate-unused-debug-symbols |
50431bc4 | 352 | Common Report Var(flag_debug_only_used_symbols) |
f3fdaec4 | 353 | Perform unused type elimination in debug info |
6a08f7b3 | 354 | |
de32c0cb | 355 | feliminate-unused-debug-types |
50431bc4 | 356 | Common Report Var(flag_eliminate_unused_debug_types) Init(1) |
f3fdaec4 | 357 | Perform unused type elimination in debug info |
de32c0cb | 358 | |
6ff3a151 | 359 | fexceptions |
50431bc4 | 360 | Common Report Var(flag_exceptions) |
f3fdaec4 | 361 | Enable exception handling |
6ff3a151 | 362 | |
de32c0cb | 363 | fexpensive-optimizations |
50431bc4 | 364 | Common Report Var(flag_expensive_optimizations) |
f3fdaec4 | 365 | Perform a number of minor, expensive optimizations |
de32c0cb | 366 | |
058de654 NB |
367 | ffast-math |
368 | Common | |
369 | ||
6ff3a151 | 370 | ffinite-math-only |
50431bc4 | 371 | Common Report Var(flag_finite_math_only) |
f3fdaec4 | 372 | Assume no NaNs or infinities are generated |
6ff3a151 | 373 | |
058de654 NB |
374 | ffixed- |
375 | Common Joined RejectNegative | |
cf03fd63 | 376 | -ffixed-<register> Mark <register> as being unavailable to the compiler |
058de654 | 377 | |
de32c0cb | 378 | ffloat-store |
50431bc4 | 379 | Common Report Var(flag_float_store) |
31b66477 | 380 | Don't allocate floats and doubles in extended-precision registers |
de32c0cb | 381 | |
31b66477 KC |
382 | ; Nonzero for -fforce-addr: load memory address into a register before |
383 | ; reference to memory. This makes better cse but slower compilation. | |
de32c0cb | 384 | fforce-addr |
50431bc4 | 385 | Common Report Var(flag_force_addr) |
f3fdaec4 | 386 | Copy memory address constants into registers before use |
de32c0cb | 387 | |
31b66477 KC |
388 | ; Nonzero for -fforce-mem: load memory value into a register |
389 | ; before arithmetic on it. This makes better cse but slower compilation. | |
de32c0cb | 390 | fforce-mem |
50431bc4 | 391 | Common Report Var(flag_force_mem) |
f3fdaec4 | 392 | Copy memory operands into registers before use |
de32c0cb | 393 | |
31b66477 KC |
394 | ; Nonzero means don't put addresses of constant functions in registers. |
395 | ; Used for compiling the Unix kernel, where strange substitutions are | |
396 | ; done on the assembly output. | |
de32c0cb | 397 | ffunction-cse |
50431bc4 | 398 | Common Report Var(flag_no_function_cse,0) |
f3fdaec4 | 399 | Allow function addresses to be held in registers |
de32c0cb | 400 | |
6ff3a151 | 401 | ffunction-sections |
50431bc4 | 402 | Common Report Var(flag_function_sections) |
f3fdaec4 | 403 | Place each function into its own section |
6ff3a151 | 404 | |
de32c0cb | 405 | fgcse |
50431bc4 | 406 | Common Report Var(flag_gcse) |
f3fdaec4 | 407 | Perform global common subexpression elimination |
de32c0cb NB |
408 | |
409 | fgcse-lm | |
50431bc4 | 410 | Common Report Var(flag_gcse_lm) Init(1) |
f3fdaec4 | 411 | Perform enhanced load motion during global common subexpression elimination |
de32c0cb NB |
412 | |
413 | fgcse-sm | |
21ef99b8 | 414 | Common Report Var(flag_gcse_sm) Init(0) |
f3fdaec4 | 415 | Perform store motion after global common subexpression elimination |
de32c0cb | 416 | |
f5f2e3cd | 417 | fgcse-las |
21ef99b8 | 418 | Common Report Var(flag_gcse_las) Init(0) |
f9957958 MH |
419 | Perform redundant load after store elimination in global common subexpression |
420 | elimination | |
421 | ||
422 | fgcse-after-reload | |
50431bc4 | 423 | Common Report Var(flag_gcse_after_reload) |
f9957958 MH |
424 | Perform global common subexpression elimination after register allocation |
425 | has finished. | |
f5f2e3cd | 426 | |
6ff3a151 | 427 | fguess-branch-probability |
50431bc4 | 428 | Common Report Var(flag_guess_branch_prob) |
f3fdaec4 | 429 | Enable guessing of branch probabilities |
6ff3a151 | 430 | |
31b66477 KC |
431 | ; Nonzero means ignore `#ident' directives. 0 means handle them. |
432 | ; Generate position-independent code for executables if possible | |
433 | ; On SVR4 targets, it also controls whether or not to emit a | |
434 | ; string identifying the compiler. | |
6ff3a151 | 435 | fident |
50431bc4 | 436 | Common Report Var(flag_no_ident,0) |
f3fdaec4 | 437 | Process #ident directives |
6ff3a151 | 438 | |
de32c0cb | 439 | fif-conversion |
50431bc4 | 440 | Common Report Var(flag_if_conversion) |
f3fdaec4 | 441 | Perform conversion of conditional jumps to branchless equivalents |
de32c0cb NB |
442 | |
443 | fif-conversion2 | |
50431bc4 | 444 | Common Report Var(flag_if_conversion2) |
f3fdaec4 | 445 | Perform conversion of conditional jumps to conditional execution |
de32c0cb | 446 | |
31b66477 KC |
447 | ; -finhibit-size-directive inhibits output of .size for ELF. |
448 | ; This is used only for compiling crtstuff.c, | |
449 | ; and it may be extended to other effects | |
450 | ; needed for crtstuff.c on other systems. | |
6ff3a151 | 451 | finhibit-size-directive |
50431bc4 | 452 | Common Report Var(flag_inhibit_size_directive) |
f3fdaec4 | 453 | Do not generate .size directives |
6ff3a151 | 454 | |
31b66477 KC |
455 | ; Nonzero means that functions declared `inline' will be treated |
456 | ; as `static'. Prevents generation of zillions of copies of unused | |
457 | ; static inline functions; instead, `inlines' are written out | |
458 | ; only when actually used. Used in conjunction with -g. Also | |
459 | ; does the right thing with #pragma interface. | |
de32c0cb | 460 | finline |
50431bc4 | 461 | Common Report Var(flag_no_inline,0) Init(2) |
f3fdaec4 | 462 | Pay attention to the \"inline\" keyword |
de32c0cb NB |
463 | |
464 | finline-functions | |
50431bc4 | 465 | Common Report Var(flag_inline_functions) |
f3fdaec4 | 466 | Integrate simple functions into their callers |
de32c0cb | 467 | |
d302c9d6 NB |
468 | finline-limit- |
469 | Common RejectNegative Joined UInteger | |
470 | ||
471 | finline-limit= | |
472 | Common RejectNegative Joined UInteger | |
cf03fd63 | 473 | -finline-limit=<number> Limit the size of inlined functions to <number> |
d302c9d6 | 474 | |
6ff3a151 | 475 | finstrument-functions |
50431bc4 | 476 | Common Report Var(flag_instrument_function_entry_exit) |
f3fdaec4 | 477 | Instrument function entry and exit with profiling calls |
6ff3a151 | 478 | |
8b11a64c ZD |
479 | fivopts |
480 | Common Report Var(flag_ivopts) Init(1) | |
481 | Optimize induction variables on trees | |
482 | ||
de32c0cb | 483 | fkeep-inline-functions |
50431bc4 | 484 | Common Report Var(flag_keep_inline_functions) |
f3fdaec4 | 485 | Generate code for functions even if they are fully inlined |
de32c0cb NB |
486 | |
487 | fkeep-static-consts | |
50431bc4 | 488 | Common Report Var(flag_keep_static_consts) Init(1) |
f3fdaec4 | 489 | Emit static const variables even if they are not used |
de32c0cb | 490 | |
6ff3a151 | 491 | fleading-underscore |
50431bc4 | 492 | Common Report Var(flag_leading_underscore) Init(-1) |
f3fdaec4 | 493 | Give external symbols a leading underscore |
6ff3a151 | 494 | |
de32c0cb | 495 | floop-optimize |
50431bc4 | 496 | Common Report Var(flag_loop_optimize) |
f3fdaec4 | 497 | Perform loop optimizations |
de32c0cb | 498 | |
5e962776 ZD |
499 | floop-optimize2 |
500 | Common Report Var(flag_loop_optimize2) | |
501 | Perform loop optimizations using the new loop optimizer | |
502 | ||
6ff3a151 | 503 | fmath-errno |
50431bc4 | 504 | Common Report Var(flag_errno_math) Init(1) |
f3fdaec4 | 505 | Set errno after built-in math functions |
6ff3a151 NB |
506 | |
507 | fmem-report | |
50431bc4 | 508 | Common Report Var(mem_report) |
f3fdaec4 | 509 | Report on permanent memory allocation |
6ff3a151 | 510 | |
31b66477 KC |
511 | ; This will attempt to merge constant section constants, if 1 only |
512 | ; string constants and constants from constant pool, if 2 also constant | |
513 | ; variables. | |
6ff3a151 | 514 | fmerge-all-constants |
50431bc4 | 515 | Common Report Var(flag_merge_constants,2) Init(1) |
f3fdaec4 | 516 | Attempt to merge identical constants and constant variables |
6ff3a151 NB |
517 | |
518 | fmerge-constants | |
50431bc4 | 519 | Common Report Var(flag_merge_constants,1) VarExists |
f3fdaec4 | 520 | Attempt to merge identical constants across compilation units |
6ff3a151 | 521 | |
de32c0cb NB |
522 | fmessage-length= |
523 | Common RejectNegative Joined UInteger | |
cf03fd63 | 524 | -fmessage-length=<number> Limit diagnostics to <number> characters per line. 0 suppresses line-wrapping |
de32c0cb | 525 | |
e5626198 | 526 | fmodulo-sched |
50431bc4 | 527 | Common Report Var(flag_modulo_sched) |
e5626198 AZ |
528 | Perform SMS based modulo scheduling before the first scheduling pass |
529 | ||
5e962776 ZD |
530 | fmove-loop-invariants |
531 | Common Report Var(flag_move_loop_invariants) | |
532 | Move loop invariant computations out of loops | |
533 | ||
6de9cd9a | 534 | fmudflap |
50431bc4 | 535 | Common RejectNegative Report Var(flag_mudflap) |
6de9cd9a DN |
536 | Add mudflap bounds-checking instrumentation for single-threaded program. |
537 | ||
538 | fmudflapth | |
50431bc4 | 539 | Common RejectNegative Report Var(flag_mudflap_threads) |
6de9cd9a DN |
540 | Add mudflap bounds-checking instrumentation for multi-threaded program. |
541 | ||
542 | fmudflapir | |
50431bc4 | 543 | Common RejectNegative Report Var(flag_mudflap_ignore_reads) |
6de9cd9a DN |
544 | Ignore read operations when inserting mudflap instrumentation. |
545 | ||
d72372e4 MH |
546 | freschedule-modulo-scheduled-loops |
547 | Common Report Var(flag_resched_modulo_sched) | |
548 | Enable/Disable the traditional scheduling in loops that already passed modulo scheduling | |
549 | ||
6ff3a151 | 550 | fnon-call-exceptions |
50431bc4 | 551 | Common Report Var(flag_non_call_exceptions) |
f3fdaec4 | 552 | Support synchronous non-call exceptions |
6ff3a151 | 553 | |
de32c0cb | 554 | fomit-frame-pointer |
50431bc4 | 555 | Common Report Var(flag_omit_frame_pointer) |
f3fdaec4 | 556 | When possible do not generate stack frames |
de32c0cb | 557 | |
6ff3a151 | 558 | foptimize-register-move |
50431bc4 | 559 | Common Report Var(flag_regmove) |
f3fdaec4 | 560 | Do the full register move optimization pass |
6ff3a151 | 561 | |
de32c0cb | 562 | foptimize-sibling-calls |
50431bc4 | 563 | Common Report Var(flag_optimize_sibling_calls) |
f3fdaec4 | 564 | Optimize sibling and tail recursive calls |
de32c0cb | 565 | |
6ff3a151 | 566 | fpack-struct |
50431bc4 | 567 | Common Report Var(flag_pack_struct) |
f3fdaec4 | 568 | Pack structure members together without holes |
6ff3a151 | 569 | |
467cecf3 JB |
570 | fpack-struct= |
571 | Common RejectNegative Joined UInteger | |
572 | -fpack-struct=<number> Set initial maximum structure member alignment | |
573 | ||
de32c0cb | 574 | fpcc-struct-return |
50431bc4 | 575 | Common Report Var(flag_pcc_struct_return,1) VarExists |
f3fdaec4 | 576 | Return small aggregates in memory, not registers |
de32c0cb NB |
577 | |
578 | fpeel-loops | |
50431bc4 | 579 | Common Report Var(flag_peel_loops) |
f3fdaec4 | 580 | Perform loop peeling |
de32c0cb NB |
581 | |
582 | fpeephole | |
50431bc4 | 583 | Common Report Var(flag_no_peephole,0) |
f3fdaec4 | 584 | Enable machine specific peephole optimizations |
de32c0cb | 585 | |
6ff3a151 | 586 | fpeephole2 |
50431bc4 | 587 | Common Report Var(flag_peephole2) |
f3fdaec4 | 588 | Enable an RTL peephole pass before sched2 |
6ff3a151 | 589 | |
31b66477 KC |
590 | fPIC |
591 | Common Report Var(flag_pic,2) | |
592 | Generate position-independent code if possible (large mode) | |
593 | ||
594 | fPIE | |
595 | Common Report Var(flag_pie,2) | |
596 | Generate position-independent code for executables if possible (large mode) | |
597 | ||
6ff3a151 | 598 | fpic |
50431bc4 | 599 | Common Report Var(flag_pic,1) VarExists |
31b66477 | 600 | Generate position-independent code if possible (small mode) |
6ff3a151 NB |
601 | |
602 | fpie | |
50431bc4 | 603 | Common Report Var(flag_pie,1) VarExists |
31b66477 | 604 | Generate position-independent code for executables if possible (small mode) |
6ff3a151 | 605 | |
de32c0cb | 606 | fprefetch-loop-arrays |
50431bc4 | 607 | Common Report Var(flag_prefetch_loop_arrays) |
f3fdaec4 | 608 | Generate prefetch instructions, if available, for arrays in loops |
de32c0cb | 609 | |
6ff3a151 | 610 | fprofile |
50431bc4 | 611 | Common Report Var(profile_flag) |
f3fdaec4 | 612 | Enable basic program profiling code |
6ff3a151 NB |
613 | |
614 | fprofile-arcs | |
50431bc4 | 615 | Common Report Var(profile_arc_flag) |
f3fdaec4 | 616 | Insert arc-based program profiling code |
6ff3a151 | 617 | |
a8a5f53a JH |
618 | fprofile-generate |
619 | Common | |
620 | Enable common options for generating profile info for profile feedback directed optimizations | |
621 | ||
622 | fprofile-use | |
623 | Common | |
624 | Enable common options for performing profile feedback directed optimizations | |
625 | ||
fca9dc00 | 626 | fprofile-values |
50431bc4 | 627 | Common Report Var(flag_profile_values) |
fca9dc00 ZD |
628 | Insert code to profile values of expressions |
629 | ||
de32c0cb NB |
630 | frandom-seed |
631 | Common | |
632 | ||
633 | frandom-seed= | |
634 | Common Joined RejectNegative | |
cf03fd63 | 635 | -frandom-seed=<string> Make compile reproducible using <string> |
de32c0cb | 636 | |
de32c0cb | 637 | freg-struct-return |
50431bc4 | 638 | Common Report Var(flag_pcc_struct_return,0) VarExists |
f3fdaec4 | 639 | Return small aggregates in registers |
de32c0cb | 640 | |
6ff3a151 | 641 | fregmove |
50431bc4 | 642 | Common Report Var(flag_regmove) |
f3fdaec4 | 643 | Enables a register move optimization |
6ff3a151 NB |
644 | |
645 | frename-registers | |
50431bc4 | 646 | Common Report Var(flag_rename_registers) |
f3fdaec4 | 647 | Perform a register renaming optimization pass |
6ff3a151 NB |
648 | |
649 | freorder-blocks | |
50431bc4 | 650 | Common Report Var(flag_reorder_blocks) |
f3fdaec4 | 651 | Reorder basic blocks to improve code placement |
6ff3a151 | 652 | |
750054a2 | 653 | freorder-blocks-and-partition |
50431bc4 | 654 | Common Report Var(flag_reorder_blocks_and_partition) |
750054a2 CT |
655 | Reorder basic blocks and partition into hot and cold sections |
656 | ||
6ff3a151 | 657 | freorder-functions |
50431bc4 | 658 | Common Report Var(flag_reorder_functions) |
f3fdaec4 | 659 | Reorder functions to improve code placement |
6ff3a151 | 660 | |
de32c0cb | 661 | frerun-cse-after-loop |
50431bc4 | 662 | Common Report Var(flag_rerun_cse_after_loop) |
f3fdaec4 | 663 | Add a common subexpression elimination pass after loop optimizations |
de32c0cb NB |
664 | |
665 | frerun-loop-opt | |
50431bc4 | 666 | Common Report Var(flag_rerun_loop_opt) |
f3fdaec4 | 667 | Run the loop optimizer twice |
de32c0cb | 668 | |
039c3d42 | 669 | frounding-math |
50431bc4 | 670 | Common Report Var(flag_rounding_math) |
039c3d42 RS |
671 | Disable optimizations that assume default FP rounding behavior |
672 | ||
6ff3a151 | 673 | fsched-interblock |
50431bc4 | 674 | Common Report Var(flag_schedule_interblock) Init(1) |
f3fdaec4 | 675 | Enable scheduling across basic blocks |
6ff3a151 NB |
676 | |
677 | fsched-spec | |
50431bc4 | 678 | Common Report Var(flag_schedule_speculative) Init(1) |
f3fdaec4 | 679 | Allow speculative motion of non-loads |
6ff3a151 NB |
680 | |
681 | fsched-spec-load | |
50431bc4 | 682 | Common Report Var(flag_schedule_speculative_load) |
f3fdaec4 | 683 | Allow speculative motion of some loads |
6ff3a151 NB |
684 | |
685 | fsched-spec-load-dangerous | |
50431bc4 | 686 | Common Report Var(flag_schedule_speculative_load_dangerous) |
f3fdaec4 | 687 | Allow speculative motion of more loads |
6ff3a151 | 688 | |
de32c0cb NB |
689 | fsched-verbose= |
690 | Common RejectNegative Joined | |
cf03fd63 | 691 | -fsched-verbose=<number> Set the verbosity level of the scheduler |
de32c0cb | 692 | |
6ff3a151 | 693 | fsched2-use-superblocks |
50431bc4 | 694 | Common Report Var(flag_sched2_use_superblocks) |
f3fdaec4 | 695 | If scheduling post reload, do superblock scheduling |
6ff3a151 NB |
696 | |
697 | fsched2-use-traces | |
50431bc4 | 698 | Common Report Var(flag_sched2_use_traces) |
f3fdaec4 | 699 | If scheduling post reload, do trace scheduling |
6ff3a151 | 700 | |
de32c0cb | 701 | fschedule-insns |
50431bc4 | 702 | Common Report Var(flag_schedule_insns) |
f3fdaec4 | 703 | Reschedule instructions before register allocation |
de32c0cb NB |
704 | |
705 | fschedule-insns2 | |
50431bc4 | 706 | Common Report Var(flag_schedule_insns_after_reload) |
f3fdaec4 | 707 | Reschedule instructions after register allocation |
de32c0cb | 708 | |
31b66477 KC |
709 | ; sched_stalled_insns means that insns can be moved prematurely from the queue |
710 | ; of stalled insns into the ready list. | |
569fa502 | 711 | fsched-stalled-insns |
50431bc4 | 712 | Common Report Var(flag_sched_stalled_insns) |
569fa502 DN |
713 | Allow premature scheduling of queued insns |
714 | ||
715 | fsched-stalled-insns= | |
716 | Common RejectNegative Joined UInteger | |
717 | -fsched-stalled-insns=<number> Set number of queued insns that can be prematurely scheduled | |
718 | ||
31b66477 KC |
719 | ; sched_stalled_insns_dep controls how many recently scheduled cycles will |
720 | ; be examined for a dependency on a stalled insn that is candidate for | |
721 | ; premature removal from the queue of stalled insns into the ready list (has | |
722 | ; an effect only if the flag 'sched_stalled_insns' is set). | |
569fa502 | 723 | fsched-stalled-insns-dep |
50431bc4 | 724 | Common Report Var(flag_sched_stalled_insns_dep,1) Init(1) |
569fa502 DN |
725 | Set dependence distance checking in premature scheduling of queued insns |
726 | ||
727 | fsched-stalled-insns-dep= | |
728 | Common RejectNegative Joined UInteger | |
729 | -fsched-stalled-insns-dep=<number> Set dependence distance checking in premature scheduling of queued insns | |
730 | ||
de32c0cb | 731 | fshared-data |
50431bc4 | 732 | Common Report Var(flag_shared_data) |
f3fdaec4 | 733 | Mark data as shared rather than private |
de32c0cb | 734 | |
6ff3a151 | 735 | fsignaling-nans |
50431bc4 | 736 | Common Report Var(flag_signaling_nans) |
f3fdaec4 | 737 | Disable optimizations observable by IEEE signaling NaNs |
6ff3a151 NB |
738 | |
739 | fsingle-precision-constant | |
50431bc4 | 740 | Common Report Var(flag_single_precision_constant) |
f3fdaec4 | 741 | Convert floating point constants to single precision constants |
6ff3a151 | 742 | |
6d9901e7 ZD |
743 | fspeculative-prefetching |
744 | Common Report Var(flag_speculative_prefetching) | |
745 | Use value profiling for speculative prefetching | |
746 | ||
113d659a ZD |
747 | fsplit-ivs-in-unroller |
748 | Common Report Var(flag_split_ivs_in_unroller) Init(1) | |
749 | Split lifetimes of induction variables when loops are unrolled. | |
750 | ||
f37a4f14 RE |
751 | fvariable-expansion-in-unroller |
752 | Common Report Var(flag_variable_expansion_in_unroller) | |
753 | Apply variable expansion when loops are unrolled. | |
754 | ||
31b66477 KC |
755 | ; Emit code to probe the stack, to help detect stack overflow; also |
756 | ; may cause large objects to be allocated dynamically. | |
6ff3a151 | 757 | fstack-check |
50431bc4 | 758 | Common Report Var(flag_stack_check) |
f3fdaec4 | 759 | Insert stack checking code into the program |
6ff3a151 | 760 | |
de32c0cb NB |
761 | fstack-limit |
762 | Common | |
763 | ||
058de654 NB |
764 | fstack-limit-register= |
765 | Common RejectNegative Joined | |
cf03fd63 | 766 | -fstack-limit-register=<register> Trap if the stack goes past <register> |
058de654 NB |
767 | |
768 | fstack-limit-symbol= | |
769 | Common RejectNegative Joined | |
cf03fd63 | 770 | -fstack-limit-symbol=<name> Trap if the stack goes past symbol <name> |
058de654 | 771 | |
de32c0cb | 772 | fstrength-reduce |
50431bc4 | 773 | Common Report Var(flag_strength_reduce) |
f3fdaec4 | 774 | Perform strength reduction optimizations |
de32c0cb | 775 | |
31b66477 KC |
776 | ; Nonzero if we should do (language-dependent) alias analysis. |
777 | ; Typically, this analysis will assume that expressions of certain | |
778 | ; types do not alias expressions of certain other types. Only used | |
779 | ; if alias analysis (in general) is enabled. | |
6ff3a151 | 780 | fstrict-aliasing |
50431bc4 | 781 | Common Report Var(flag_strict_aliasing) |
f3fdaec4 | 782 | Assume strict aliasing rules apply |
6ff3a151 | 783 | |
de32c0cb | 784 | fsyntax-only |
50431bc4 | 785 | Common Report Var(flag_syntax_only) |
f3fdaec4 | 786 | Check for syntax errors, then stop |
de32c0cb | 787 | |
6ff3a151 | 788 | ftest-coverage |
50431bc4 | 789 | Common Report Var(flag_test_coverage) |
f3fdaec4 | 790 | Create data files needed by \"gcov\" |
6ff3a151 | 791 | |
de32c0cb | 792 | fthread-jumps |
50431bc4 | 793 | Common Report Var(flag_thread_jumps) |
f3fdaec4 | 794 | Perform jump threading optimizations |
de32c0cb | 795 | |
6ff3a151 | 796 | ftime-report |
50431bc4 | 797 | Common Report Var(time_report) |
f3fdaec4 | 798 | Report the time taken by each compiler pass |
6ff3a151 | 799 | |
058de654 NB |
800 | ftls-model= |
801 | Common Joined RejectNegative | |
cf03fd63 | 802 | -ftls-model=[global-dynamic|local-dynamic|initial-exec|local-exec] Set the default thread-local storage code generation model |
058de654 | 803 | |
de32c0cb | 804 | ftracer |
50431bc4 | 805 | Common Report Var(flag_tracer) |
f3fdaec4 | 806 | Perform superblock formation via tail duplication |
de32c0cb | 807 | |
31b66477 KC |
808 | ; Zero means that floating-point math operations cannot generate a |
809 | ; (user-visible) trap. This is the case, for example, in nonstop | |
810 | ; IEEE 754 arithmetic. | |
6ff3a151 | 811 | ftrapping-math |
10060b83 | 812 | Common Report Var(flag_trapping_math) Init(1) |
f3fdaec4 | 813 | Assume floating-point operations can trap |
6ff3a151 NB |
814 | |
815 | ftrapv | |
50431bc4 | 816 | Common Report Var(flag_trapv) |
f3fdaec4 | 817 | Trap for signed overflow in addition, subtraction and multiplication |
6ff3a151 | 818 | |
6de9cd9a | 819 | ftree-based-profiling |
50431bc4 | 820 | Common Report Var(flag_tree_based_profiling) |
6de9cd9a DN |
821 | Use tree-ssa based implementation of profiling |
822 | ||
823 | ftree-ccp | |
50431bc4 | 824 | Common Report Var(flag_tree_ccp) |
6de9cd9a DN |
825 | Enable SSA-CCP optimization on trees |
826 | ||
827 | ftree-ch | |
50431bc4 | 828 | Common Report Var(flag_tree_ch) |
6de9cd9a DN |
829 | Enable loop header copying on trees |
830 | ||
831 | ftree-combine-temps | |
50431bc4 | 832 | Common Report Var(flag_tree_combine_temps) |
6de9cd9a DN |
833 | Coalesce memory temporaries in the SSA->normal pass |
834 | ||
835 | ftree-copyrename | |
50431bc4 | 836 | Common Report Var(flag_tree_copyrename) |
6de9cd9a DN |
837 | Replace SSA temporaries with better names in copies. |
838 | ||
839 | ftree-dce | |
50431bc4 | 840 | Common Report Var(flag_tree_dce) |
6de9cd9a DN |
841 | Enable SSA dead code elimination optimization on trees |
842 | ||
843 | ftree-dominator-opts | |
50431bc4 | 844 | Common Report Var(flag_tree_dom) |
6de9cd9a DN |
845 | Enable dominator optimizations |
846 | ||
847 | ftree-dse | |
50431bc4 | 848 | Common Report Var(flag_tree_dse) |
6de9cd9a DN |
849 | Enable dead store elimination |
850 | ||
ff2ad0f7 DN |
851 | ftree-fre |
852 | Common Report Var(flag_tree_fre) | |
853 | Enable Full Redundancy Elimination (FRE) on trees | |
854 | ||
1b08d87d DB |
855 | ftree-loop-im |
856 | Common Report Var(flag_tree_loop_im) Init(1) | |
a7e5372d ZD |
857 | Enable loop invariant motion on trees |
858 | ||
599eabdb DB |
859 | ftree-loop-linear |
860 | Common Report Var(flag_tree_loop_linear) | |
861 | Enable linear loop transforms on trees | |
862 | ||
1b08d87d | 863 | ftree-loop-ivcanon |
47bcd07d | 864 | Common Report Var(flag_tree_loop_ivcanon) Init(1) |
1b08d87d DB |
865 | Create canonical induction variables in loops |
866 | ||
c66b6c66 ZD |
867 | ftree-loop-optimize |
868 | Common Report Var(flag_tree_loop_optimize) Init(1) | |
869 | Enable loop optimizations on tree level | |
870 | ||
6de9cd9a | 871 | ftree-pre |
50431bc4 | 872 | Common Report Var(flag_tree_pre) |
6de9cd9a DN |
873 | Enable SSA-PRE optimization on trees |
874 | ||
c75ab022 DB |
875 | ftree-salias |
876 | Common Report Var(flag_tree_salias) | |
877 | Perform structural alias analysis | |
878 | ||
fa555252 DB |
879 | ftree-sink |
880 | Common Report Var(flag_tree_sink) | |
881 | Enable SSA code sinking on trees | |
882 | ||
6de9cd9a | 883 | ftree-sra |
50431bc4 | 884 | Common Report Var(flag_tree_sra) |
6de9cd9a DN |
885 | Perform scalar replacement of aggregates |
886 | ||
887 | ftree-ter | |
50431bc4 | 888 | Common Report Var(flag_tree_ter) |
6de9cd9a DN |
889 | Replace temporary expressions in the SSA->normal pass |
890 | ||
891 | ftree-lrs | |
50431bc4 | 892 | Common Report Var(flag_tree_live_range_split) |
6de9cd9a DN |
893 | Perform live range splitting during the SSA->normal pass. |
894 | ||
de32c0cb | 895 | funit-at-a-time |
50431bc4 | 896 | Common Report Var(flag_unit_at_a_time) |
f3fdaec4 | 897 | Compile whole compilation unit at a time |
de32c0cb NB |
898 | |
899 | funroll-loops | |
50431bc4 | 900 | Common Report Var(flag_unroll_loops) |
f3fdaec4 | 901 | Perform loop unrolling when iteration count is known |
de32c0cb NB |
902 | |
903 | funroll-all-loops | |
50431bc4 | 904 | Common Report Var(flag_unroll_all_loops) |
f3fdaec4 | 905 | Perform loop unrolling for all loops |
de32c0cb | 906 | |
31b66477 KC |
907 | ; Nonzero means that unsafe floating-point math optimizations are allowed |
908 | ; for the sake of speed. IEEE compliance is not guaranteed, and operations | |
909 | ; are allowed to assume that their arguments and results are "normal" | |
910 | ; (e.g., nonnegative for SQRT). | |
6ff3a151 | 911 | funsafe-math-optimizations |
50431bc4 | 912 | Common Report Var(flag_unsafe_math_optimizations) |
f3fdaec4 | 913 | Allow math optimizations that may violate IEEE or ISO standards |
6ff3a151 | 914 | |
de32c0cb | 915 | funswitch-loops |
50431bc4 | 916 | Common Report Var(flag_unswitch_loops) |
f3fdaec4 | 917 | Perform loop unswitching |
de32c0cb | 918 | |
6ff3a151 | 919 | funwind-tables |
50431bc4 | 920 | Common Report Var(flag_unwind_tables) |
f3fdaec4 | 921 | Just generate unwind tables for exception handling |
6ff3a151 | 922 | |
014a1138 | 923 | fvar-tracking |
50431bc4 | 924 | Common Report Var(flag_var_tracking) VarExists |
014a1138 JZ |
925 | Perform variable tracking |
926 | ||
79fe1b3b DN |
927 | ftree-vectorize |
928 | Common Report Var(flag_tree_vectorize) | |
929 | Enable loop vectorization on trees | |
930 | ||
c866976a LB |
931 | ftree-vectorizer-verbose= |
932 | Common RejectNegative Joined | |
933 | -ftree-vectorizer-verbose=<number> Set the verbosity level of the vectorizer | |
934 | ||
31b66477 KC |
935 | ; -fverbose-asm causes extra commentary information to be produced in |
936 | ; the generated assembly code (to make it more readable). This option | |
937 | ; is generally only of use to those who actually need to read the | |
938 | ; generated assembly code (perhaps while debugging the compiler itself). | |
939 | ; -fno-verbose-asm, the default, causes the extra information | |
940 | ; to not be added and is useful when comparing two assembler files. | |
6ff3a151 | 941 | fverbose-asm |
50431bc4 | 942 | Common Report Var(flag_verbose_asm) |
f3fdaec4 | 943 | Add extra commentary to assembler output |
6ff3a151 | 944 | |
d7afec4b ND |
945 | fvisibility= |
946 | Common Joined RejectNegative | |
947 | -fvisibility=[default|internal|hidden|protected] Set the default symbol visibility | |
948 | ||
949 | ||
fca9dc00 | 950 | fvpt |
50431bc4 | 951 | Common Report Var(flag_value_profile_transformations) |
fca9dc00 ZD |
952 | Use expression value profiles in optimizations |
953 | ||
62551c66 | 954 | fweb |
21ef99b8 | 955 | Common Report Var(flag_web) Init(0) |
62551c66 JH |
956 | Construct webs and split unrelated uses of single variable |
957 | ||
6ff3a151 | 958 | fwrapv |
50431bc4 | 959 | Common Report Var(flag_wrapv) |
f3fdaec4 | 960 | Assume signed arithmetic overflow wraps around |
6ff3a151 | 961 | |
6ff3a151 | 962 | fzero-initialized-in-bss |
50431bc4 | 963 | Common Report Var(flag_zero_initialized_in_bss) Init(1) |
f3fdaec4 | 964 | Put zero initialized data in the bss section |
6ff3a151 | 965 | |
e01cc6dc NB |
966 | g |
967 | Common JoinedOrMissing | |
df38ffef NB |
968 | Generate debug information in default format |
969 | ||
970 | gcoff | |
971 | Common JoinedOrMissing | |
972 | Generate debug information in COFF format | |
973 | ||
df38ffef NB |
974 | gdwarf-2 |
975 | Common JoinedOrMissing | |
976 | Generate debug information in DWARF v2 format | |
977 | ||
978 | ggdb | |
979 | Common JoinedOrMissing | |
980 | Generate debug information in default extended format | |
981 | ||
982 | gstabs | |
983 | Common JoinedOrMissing | |
984 | Generate debug information in STABS format | |
985 | ||
986 | gstabs+ | |
987 | Common JoinedOrMissing | |
988 | Generate debug information in extended STABS format | |
989 | ||
990 | gvms | |
991 | Common JoinedOrMissing | |
992 | Generate debug information in VMS format | |
993 | ||
994 | gxcoff | |
995 | Common JoinedOrMissing | |
996 | Generate debug information in XCOFF format | |
997 | ||
998 | gxcoff+ | |
999 | Common JoinedOrMissing | |
1000 | Generate debug information in extended XCOFF format | |
e01cc6dc | 1001 | |
d185d268 NB |
1002 | o |
1003 | Common Joined Separate | |
cf03fd63 | 1004 | -o <file> Place output into <file> |
d185d268 NB |
1005 | |
1006 | p | |
50431bc4 | 1007 | Common Var(profile_flag) |
cf03fd63 | 1008 | Enable function profiling |
d185d268 NB |
1009 | |
1010 | pedantic | |
50431bc4 | 1011 | Common Var(pedantic) |
cf03fd63 | 1012 | Issue warnings needed for strict compliance to the standard |
d185d268 NB |
1013 | |
1014 | pedantic-errors | |
1015 | Common | |
cf03fd63 | 1016 | Like -pedantic but issue them as errors |
d185d268 | 1017 | |
d7b42618 | 1018 | quiet |
50431bc4 | 1019 | Common Var(quiet_flag) |
cf03fd63 | 1020 | Do not display functions compiled or elapsed time |
d7b42618 | 1021 | |
d185d268 | 1022 | version |
50431bc4 | 1023 | Common Var(version_flag) |
cf03fd63 | 1024 | Display the compiler's version |
d185d268 NB |
1025 | |
1026 | w | |
50431bc4 | 1027 | Common Var(inhibit_warnings) |
cf03fd63 | 1028 | Suppress warnings |
d185d268 | 1029 | |
d7b42618 | 1030 | ; This comment is to ensure we retain the blank line above. |