1 ; Options for the language- and target-independent parts of the compiler.
2 ; Copyright (C) 2003 Free Software Foundation, Inc.
4 ; This file is part of GCC.
6 ; GCC is free software; you can redistribute it and/or modify it under
7 ; the terms of the GNU General Public License as published by the Free
8 ; Software Foundation; either version 2, or (at your option) any later
11 ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 ; WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 ; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 ; You should have received a copy of the GNU General Public License
17 ; along with GCC; see the file COPYING. If not, write to the Free
18 ; Software Foundation, 59 Temple Place - Suite 330, Boston, MA
21 ; See c.opt for a description of this file's format.
23 ; Please try to keep this file in ASCII collating order.
27 Display this information
39 Common Joined Separate UInteger
40 -G<number> Put global and static data smaller than <number> bytes into a special section (on some targets)
43 Common JoinedOrMissing
44 -O<number> Set optimization level to <number>
48 Optimize for space rather than speed
52 This switch is deprecated; use -Wextra instead
56 Warn about returning structures, unions or arrays
60 Warn about pointer casts which increase alignment
62 Wdeprecated-declarations
64 Warn about uses of __attribute__((deprecated)) declarations
66 Wdisabled-optimization
68 Warn when an optimization pass is disabled
72 Treat all warnings as errors
76 Print extra (possibly unwanted) warnings
80 Warn when an inlined function cannot be inlined
83 Common RejectNegative Joined UInteger
84 -Wlarger-than-<number> Warn if an object is larger than <number> bytes
88 Warn about functions which might be candidates for __attribute__((noreturn))
92 Warn when the packed attribute has no effect on struct layout
96 Warn when padding is required to align structure members
100 Warn when one local variable shadows another
104 Warn about code which might break strict aliasing rules
108 Warn about enumerated switches, with no default, missing a case
112 Warn about enumerated switches missing a \"default:\" statement
116 Warn about all enumerated switches missing a specific case
120 Suppress warnings from system headers
124 Warn about uninitialized automatic variables
128 Warn about code that will never be executed
132 Enable all -Wunused- warnings
136 Warn when a function is unused
140 Warn when a label is unused
144 Warn when a function parameter is unused
148 Warn when an expression value is unused
152 Warn when a variable is unused
156 -aux-info <file> Emit declaration information into <file>
169 -d<letters> Enable dumps from specific passes of the compiler
173 -dumpbase <file> Set the file basename to be used for dumps
185 Common RejectNegative Joined UInteger
191 Common RejectNegative Joined UInteger
197 Common RejectNegative Joined UInteger
203 Common RejectNegative Joined UInteger
211 fargument-noalias-global
214 fasynchronous-unwind-tables
223 fbranch-probabilities
226 fbranch-target-load-optimize
229 fbranch-target-load-optimize2
233 Common Joined RejectNegative
234 -fcall-saved-<register> Mark <register> as being preserved across functions
237 Common Joined RejectNegative
238 -fcall-used-<register> Mark <register> as being corrupted by function calls
267 fdelete-null-pointer-checks
270 fdiagnostics-show-location=
271 Common Joined RejectNegative
272 -fdiagnostics-show-location=[once|every-line] How often to emit source location at the beginning of line-wrapped diagnostics
277 feliminate-dwarf2-dups
280 feliminate-unused-debug-symbols
283 feliminate-unused-debug-types
289 fexpensive-optimizations
299 Common Joined RejectNegative
300 -ffixed-<register> Mark <register> as being unavailable to the compiler
329 fguess-branch-probability
341 finhibit-size-directive
351 Common RejectNegative Joined UInteger
354 Common RejectNegative Joined UInteger
355 -finline-limit=<number> Limit the size of inlined functions to <number>
357 finstrument-functions
360 fkeep-inline-functions
385 Common RejectNegative Joined UInteger
386 -fmessage-length=<number> Limit diagnostics to <number> characters per line. 0 suppresses line-wrapping
400 fold-unroll-all-loops
406 foptimize-register-move
409 foptimize-sibling-calls
433 fprefetch-loop-arrays
446 Common Joined RejectNegative
447 -frandom-seed=<string> Make compile reproducible using <string>
467 frerun-cse-after-loop
482 fsched-spec-load-dangerous
486 Common RejectNegative Joined
487 -fsched-verbose=<number> Set the verbosity level of the scheduler
489 fsched2-use-superblocks
507 fsingle-precision-constant
525 fstack-limit-register=
526 Common RejectNegative Joined
527 -fstack-limit-register=<register> Trap if the stack goes past <register>
530 Common RejectNegative Joined
531 -fstack-limit-symbol=<name> Trap if the stack goes past symbol <name>
552 Common Joined RejectNegative
553 -ftls-model=[global-dynamic|local-dynamic|initial-exec|local-exec] Set the default thread-local storage code generation model
573 funsafe-math-optimizations
591 fzero-initialized-in-bss
595 Common JoinedOrMissing
601 Common Joined Separate
602 -o <file> Place output into <file>
606 Enable function profiling
610 Issue warnings needed for strict compliance to the standard
614 Like -pedantic but issue them as errors
618 Do not display functions compiled or elapsed time
622 Display the compiler's version
628 ; This comment is to ensure we retain the blank line above.