freebsd-dev/contrib/gcc/common.opt

1159 lines
32 KiB
Plaintext
Raw Normal View History

2004-07-28 03:11:36 +00:00
; Options for the language- and target-independent parts of the compiler.
2007-05-19 01:19:51 +00:00
; Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2004-07-28 03:11:36 +00:00
;
; This file is part of GCC.
;
; GCC is free software; you can redistribute it and/or modify it under
; the terms of the GNU General Public License as published by the Free
; Software Foundation; either version 2, or (at your option) any later
; version.
2007-05-19 01:19:51 +00:00
;
2004-07-28 03:11:36 +00:00
; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
; WARRANTY; without even the implied warranty of MERCHANTABILITY or
; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
; for more details.
2007-05-19 01:19:51 +00:00
;
2004-07-28 03:11:36 +00:00
; You should have received a copy of the GNU General Public License
; along with GCC; see the file COPYING. If not, write to the Free
2007-05-19 01:19:51 +00:00
; Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
; 02110-1301, USA.
2004-07-28 03:11:36 +00:00
2007-05-19 01:19:51 +00:00
; See the GCC internals manual for a description of this file's format.
2004-07-28 03:11:36 +00:00
; Please try to keep this file in ASCII collating order.
-help
Common
Display this information
-param
Common Separate
2005-06-03 03:28:44 +00:00
--param <param>=<value> Set parameter <param> to value. See below for a complete list of parameters
2004-07-28 03:11:36 +00:00
-target-help
Common
-version
Common
G
Common Joined Separate UInteger
-G<number> Put global and static data smaller than <number> bytes into a special section (on some targets)
O
Common JoinedOrMissing
-O<number> Set optimization level to <number>
Os
Common
Optimize for space rather than speed
W
Common RejectNegative
This switch is deprecated; use -Wextra instead
Waggregate-return
2007-05-19 01:19:51 +00:00
Common Var(warn_aggregate_return)
2004-07-28 03:11:36 +00:00
Warn about returning structures, unions or arrays
2007-05-19 01:19:51 +00:00
Wattributes
Common Var(warn_attributes) Init(1)
Warn about inappropriate attribute usage
2004-07-28 03:11:36 +00:00
Wcast-align
2007-05-19 01:19:51 +00:00
Common Var(warn_cast_align)
2004-07-28 03:11:36 +00:00
Warn about pointer casts which increase alignment
Wdeprecated-declarations
2007-05-19 01:19:51 +00:00
Common Var(warn_deprecated_decl) Init(1)
2004-07-28 03:11:36 +00:00
Warn about uses of __attribute__((deprecated)) declarations
Wdisabled-optimization
2007-05-19 01:19:51 +00:00
Common Var(warn_disabled_optimization)
2004-07-28 03:11:36 +00:00
Warn when an optimization pass is disabled
Werror
2007-05-19 01:19:51 +00:00
Common Var(warnings_are_errors)
2004-07-28 03:11:36 +00:00
Treat all warnings as errors
2007-05-19 01:19:51 +00:00
Werror=
Common Joined
Treat specified warning as error
2004-07-28 03:11:36 +00:00
Wextra
Common
Print extra (possibly unwanted) warnings
2007-05-19 01:19:51 +00:00
Wfatal-errors
Common Var(flag_fatal_errors)
Exit on the first error occurred
2004-07-28 03:11:36 +00:00
Winline
2007-05-19 01:19:51 +00:00
Common Var(warn_inline)
2004-07-28 03:11:36 +00:00
Warn when an inlined function cannot be inlined
Wlarger-than-
Common RejectNegative Joined UInteger
-Wlarger-than-<number> Warn if an object is larger than <number> bytes
2007-05-19 01:19:51 +00:00
Wunsafe-loop-optimizations
Common Var(warn_unsafe_loop_optimizations)
Warn if the loop cannot be optimized due to nontrivial assumptions.
2004-07-28 03:11:36 +00:00
Wmissing-noreturn
2007-05-19 01:19:51 +00:00
Common Var(warn_missing_noreturn)
2004-07-28 03:11:36 +00:00
Warn about functions which might be candidates for __attribute__((noreturn))
2007-05-19 01:19:51 +00:00
Woverflow
Common Var(warn_overflow) Init(1)
Warn about overflow in arithmetic expressions
2004-07-28 03:11:36 +00:00
Wpacked
2007-05-19 01:19:51 +00:00
Common Var(warn_packed)
2004-07-28 03:11:36 +00:00
Warn when the packed attribute has no effect on struct layout
Wpadded
2007-05-19 01:19:51 +00:00
Common Var(warn_padded)
2004-07-28 03:11:36 +00:00
Warn when padding is required to align structure members
Wshadow
2007-05-19 01:19:51 +00:00
Common Var(warn_shadow)
2004-07-28 03:11:36 +00:00
Warn when one local variable shadows another
2007-05-19 01:19:51 +00:00
Wstack-protector
Common Var(warn_stack_protect)
Warn when not issuing stack smashing protection for some reason
2004-07-28 03:11:36 +00:00
Wstrict-aliasing
Common
Warn about code which might break strict aliasing rules
2007-05-19 01:19:51 +00:00
Wstrict-aliasing=
Common Joined UInteger
Warn about code which might break strict aliasing rules
Wstrict-overflow
2004-07-28 03:11:36 +00:00
Common
2007-05-19 01:19:51 +00:00
Warn about optimizations that assume that signed overflow is undefined
Wstrict-overflow=
Common Joined UInteger
Warn about optimizations that assume that signed overflow is undefined
Wswitch
Common Var(warn_switch)
2004-07-28 03:11:36 +00:00
Warn about enumerated switches, with no default, missing a case
Wswitch-default
2007-05-19 01:19:51 +00:00
Common Var(warn_switch_default)
2004-07-28 03:11:36 +00:00
Warn about enumerated switches missing a \"default:\" statement
Wswitch-enum
2007-05-19 01:19:51 +00:00
Common Var(warn_switch_enum)
2004-07-28 03:11:36 +00:00
Warn about all enumerated switches missing a specific case
Wsystem-headers
2007-05-19 01:19:51 +00:00
Common Var(warn_system_headers)
2004-07-28 03:11:36 +00:00
Do not suppress warnings from system headers
Wuninitialized
2007-05-19 01:19:51 +00:00
Common Var(warn_uninitialized)
2004-07-28 03:11:36 +00:00
Warn about uninitialized automatic variables
Wunreachable-code
2007-05-19 01:19:51 +00:00
Common Var(warn_notreached)
2004-07-28 03:11:36 +00:00
Warn about code that will never be executed
Wunused
Common
Enable all -Wunused- warnings
Wunused-function
2007-05-19 01:19:51 +00:00
Common Var(warn_unused_function)
2004-07-28 03:11:36 +00:00
Warn when a function is unused
Wunused-label
2007-05-19 01:19:51 +00:00
Common Var(warn_unused_label)
2004-07-28 03:11:36 +00:00
Warn when a label is unused
Wunused-parameter
2007-05-19 01:19:51 +00:00
Common Var(warn_unused_parameter)
2004-07-28 03:11:36 +00:00
Warn when a function parameter is unused
Wunused-value
2007-05-19 01:19:51 +00:00
Common Var(warn_unused_value)
2004-07-28 03:11:36 +00:00
Warn when an expression value is unused
Wunused-variable
2007-05-19 01:19:51 +00:00
Common Var(warn_unused_variable)
2004-07-28 03:11:36 +00:00
Warn when a variable is unused
2007-05-19 01:19:51 +00:00
Wvolatile-register-var
Common Var(warn_register_var)
Warn when a register variable is declared volatile
2004-07-28 03:11:36 +00:00
aux-info
Common Separate
-aux-info <file> Emit declaration information into <file>
aux-info=
Common Joined
auxbase
Common Separate
auxbase-strip
Common Separate
d
Common Joined
-d<letters> Enable dumps from specific passes of the compiler
dumpbase
Common Separate
-dumpbase <file> Set the file basename to be used for dumps
2007-05-19 01:19:51 +00:00
; The version of the C++ ABI in use. The following values are allowed:
;
; 0: The version of the ABI believed most conformant with the C++ ABI
; specification. This ABI may change as bugs are discovered and fixed.
; Therefore, 0 will not necessarily indicate the same ABI in different
; versions of G++.
;
; 1: The version of the ABI first used in G++ 3.2.
;
; Additional positive integers will be assigned as new versions of
; the ABI become the default version of the ABI.
2004-07-28 03:11:36 +00:00
fabi-version=
2007-05-19 01:19:51 +00:00
Common Joined UInteger Var(flag_abi_version) Init(2)
2004-07-28 03:11:36 +00:00
falign-functions
2007-05-19 01:19:51 +00:00
Common Report Var(align_functions,0)
2004-07-28 03:11:36 +00:00
Align the start of functions
falign-functions=
Common RejectNegative Joined UInteger
falign-jumps
2007-05-19 01:19:51 +00:00
Common Report Var(align_jumps,0)
2004-07-28 03:11:36 +00:00
Align labels which are only reached by jumping
falign-jumps=
Common RejectNegative Joined UInteger
falign-labels
2007-05-19 01:19:51 +00:00
Common Report Var(align_labels,0)
2004-07-28 03:11:36 +00:00
Align all labels
falign-labels=
Common RejectNegative Joined UInteger
falign-loops
2007-05-19 01:19:51 +00:00
Common Report Var(align_loops)
2004-07-28 03:11:36 +00:00
Align the start of loops
falign-loops=
Common RejectNegative Joined UInteger
2007-05-19 01:19:51 +00:00
; This flag is only tested if alias checking is enabled.
; 0 if pointer arguments may alias each other. True in C.
; 1 if pointer arguments may not alias each other but may alias
; global variables.
; 2 if pointer arguments may not alias each other and may not
; alias global variables.
; 3 if pointer arguments may not alias anything. True in Fortran.
; Set by the front end.
2004-07-28 03:11:36 +00:00
fargument-alias
2007-05-19 01:19:51 +00:00
Common Report Var(flag_argument_noalias,0)
2004-07-28 03:11:36 +00:00
Specify that arguments may alias each other and globals
fargument-noalias
2007-05-19 01:19:51 +00:00
Common Report Var(flag_argument_noalias,1) VarExists
2004-07-28 03:11:36 +00:00
Assume arguments may alias globals but not each other
fargument-noalias-global
2007-05-19 01:19:51 +00:00
Common Report Var(flag_argument_noalias,2) VarExists
2004-07-28 03:11:36 +00:00
Assume arguments alias neither each other nor globals
2007-05-19 01:19:51 +00:00
fargument-noalias-anything
Common Report Var(flag_argument_noalias,3) VarExists
Assume arguments alias no other storage
2004-07-28 03:11:36 +00:00
fasynchronous-unwind-tables
2007-05-19 01:19:51 +00:00
Common Report Var(flag_asynchronous_unwind_tables)
2004-07-28 03:11:36 +00:00
Generate unwind tables that are exact at each instruction boundary
2007-05-19 01:19:51 +00:00
; -fcheck-bounds causes gcc to generate array bounds checks.
; For C, C++ and ObjC: defaults off.
; For Java: defaults to on.
; For Fortran: defaults to off.
2004-07-28 03:11:36 +00:00
fbounds-check
2007-05-19 01:19:51 +00:00
Common Report Var(flag_bounds_check)
2004-07-28 03:11:36 +00:00
Generate code to check bounds before indexing arrays
fbranch-count-reg
2007-05-19 01:19:51 +00:00
Common Report Var(flag_branch_on_count_reg) Init(1)
2004-07-28 03:11:36 +00:00
Replace add, compare, branch with branch on count register
fbranch-probabilities
2007-05-19 01:19:51 +00:00
Common Report Var(flag_branch_probabilities)
2004-07-28 03:11:36 +00:00
Use profiling information for branch probabilities
fbranch-target-load-optimize
2007-05-19 01:19:51 +00:00
Common Report Var(flag_branch_target_load_optimize)
2004-07-28 03:11:36 +00:00
Perform branch target load optimization before prologue / epilogue threading
fbranch-target-load-optimize2
2007-05-19 01:19:51 +00:00
Common Report Var(flag_branch_target_load_optimize2)
2004-07-28 03:11:36 +00:00
Perform branch target load optimization after prologue / epilogue threading
2007-05-19 01:19:51 +00:00
fbtr-bb-exclusive
Common Report Var(flag_btr_bb_exclusive)
Restrict target load migration not to re-use registers in any basic block
2004-07-28 03:11:36 +00:00
fcall-saved-
Common Joined RejectNegative
-fcall-saved-<register> Mark <register> as being preserved across functions
fcall-used-
Common Joined RejectNegative
-fcall-used-<register> Mark <register> as being corrupted by function calls
2007-05-19 01:19:51 +00:00
; Nonzero for -fcaller-saves: allocate values in regs that need to
; be saved across function calls, if that produces overall better code.
; Optional now, so people can test it.
2004-07-28 03:11:36 +00:00
fcaller-saves
2007-05-19 01:19:51 +00:00
Common Report Var(flag_caller_saves)
2004-07-28 03:11:36 +00:00
Save registers around function calls
fcommon
2007-05-19 01:19:51 +00:00
Common Report Var(flag_no_common,0)
2004-07-28 03:11:36 +00:00
Do not put uninitialized globals in the common section
fcprop-registers
2007-05-19 01:19:51 +00:00
Common Report Var(flag_cprop_registers)
2004-07-28 03:11:36 +00:00
Perform a register copy-propagation optimization pass
fcrossjumping
2007-05-19 01:19:51 +00:00
Common Report Var(flag_crossjumping)
2004-07-28 03:11:36 +00:00
Perform cross-jumping optimization
fcse-follow-jumps
2007-05-19 01:19:51 +00:00
Common Report Var(flag_cse_follow_jumps)
2004-07-28 03:11:36 +00:00
When running CSE, follow jumps to their targets
fcse-skip-blocks
2007-05-19 01:19:51 +00:00
Common Report Var(flag_cse_skip_blocks)
2004-07-28 03:11:36 +00:00
When running CSE, follow conditional jumps
2007-05-19 01:19:51 +00:00
fcx-limited-range
Common Report Var(flag_cx_limited_range)
Omit range reduction step when performing complex division
2004-07-28 03:11:36 +00:00
fdata-sections
2007-05-19 01:19:51 +00:00
Common Report Var(flag_data_sections)
2004-07-28 03:11:36 +00:00
Place data items into their own section
2007-05-19 01:19:51 +00:00
; Nonzero for -fdefer-pop: don't pop args after each function call
; instead save them up to pop many calls' args with one insns.
2004-07-28 03:11:36 +00:00
fdefer-pop
2007-05-19 01:19:51 +00:00
Common Report Var(flag_defer_pop)
2004-07-28 03:11:36 +00:00
Defer popping functions args from stack until later
fdelayed-branch
2007-05-19 01:19:51 +00:00
Common Report Var(flag_delayed_branch)
2004-07-28 03:11:36 +00:00
Attempt to fill delay slots of branch instructions
fdelete-null-pointer-checks
2007-05-19 01:19:51 +00:00
Common Report Var(flag_delete_null_pointer_checks)
2004-07-28 03:11:36 +00:00
Delete useless null pointer checks
fdiagnostics-show-location=
Common Joined RejectNegative
-fdiagnostics-show-location=[once|every-line] How often to emit source location at the beginning of line-wrapped diagnostics
2007-05-19 01:19:51 +00:00
fdiagnostics-show-option
2004-07-28 03:11:36 +00:00
Common
2007-05-19 01:19:51 +00:00
Amend appropriate diagnostic messages with the command line option that controls them
fdump-
Common Joined RejectNegative
-fdump-<type> Dump various compiler internals to a file
fdump-noaddr
Common Report Var(flag_dump_noaddr)
Suppress output of addresses in debugging dumps
fdump-unnumbered
Common Report Var(flag_dump_unnumbered) VarExists
Suppress output of instruction numbers, line number notes and addresses in debugging dumps
fearly-inlining
Common Report Var(flag_early_inlining) Init(1)
Perform early inlining
2004-07-28 03:11:36 +00:00
feliminate-dwarf2-dups
2007-05-19 01:19:51 +00:00
Common Report Var(flag_eliminate_dwarf2_dups)
2004-07-28 03:11:36 +00:00
Perform DWARF2 duplicate elimination
feliminate-unused-debug-symbols
2007-05-19 01:19:51 +00:00
Common Report Var(flag_debug_only_used_symbols)
2004-07-28 03:11:36 +00:00
Perform unused type elimination in debug info
feliminate-unused-debug-types
2007-05-19 01:19:51 +00:00
Common Report Var(flag_eliminate_unused_debug_types) Init(1)
2004-07-28 03:11:36 +00:00
Perform unused type elimination in debug info
2007-05-19 01:19:51 +00:00
femit-class-debug-always
Common Report Var(flag_emit_class_debug_always) Init(1)
Do not suppress C++ class debug information.
2004-07-28 03:11:36 +00:00
fexceptions
2007-05-19 01:19:51 +00:00
Common Report Var(flag_exceptions)
2004-07-28 03:11:36 +00:00
Enable exception handling
fexpensive-optimizations
2007-05-19 01:19:51 +00:00
Common Report Var(flag_expensive_optimizations)
2004-07-28 03:11:36 +00:00
Perform a number of minor, expensive optimizations
ffast-math
Common
ffinite-math-only
2007-05-19 01:19:51 +00:00
Common Report Var(flag_finite_math_only)
2004-07-28 03:11:36 +00:00
Assume no NaNs or infinities are generated
ffixed-
Common Joined RejectNegative
-ffixed-<register> Mark <register> as being unavailable to the compiler
ffloat-store
2007-05-19 01:19:51 +00:00
Common Report Var(flag_float_store)
Don't allocate floats and doubles in extended-precision registers
2004-07-28 03:11:36 +00:00
2007-05-19 01:19:51 +00:00
; Nonzero for -fforce-addr: load memory address into a register before
; reference to memory. This makes better cse but slower compilation.
2004-07-28 03:11:36 +00:00
fforce-addr
2007-05-19 01:19:51 +00:00
Common Report Var(flag_force_addr)
2004-07-28 03:11:36 +00:00
Copy memory address constants into registers before use
2007-05-19 01:19:51 +00:00
; Nonzero for -fforce-mem: load memory value into a register
; before arithmetic on it. This makes better cse but slower compilation.
2004-07-28 03:11:36 +00:00
fforce-mem
2007-05-19 01:19:51 +00:00
Common Report Var(flag_force_mem)
2004-07-28 03:11:36 +00:00
Copy memory operands into registers before use
2007-05-19 01:19:51 +00:00
; Nonzero means don't put addresses of constant functions in registers.
; Used for compiling the Unix kernel, where strange substitutions are
; done on the assembly output.
2004-07-28 03:11:36 +00:00
ffunction-cse
2007-05-19 01:19:51 +00:00
Common Report Var(flag_no_function_cse,0)
2004-07-28 03:11:36 +00:00
Allow function addresses to be held in registers
ffunction-sections
2007-05-19 01:19:51 +00:00
Common Report Var(flag_function_sections)
2004-07-28 03:11:36 +00:00
Place each function into its own section
fgcse
2007-05-19 01:19:51 +00:00
Common Report Var(flag_gcse)
2004-07-28 03:11:36 +00:00
Perform global common subexpression elimination
fgcse-lm
2007-05-19 01:19:51 +00:00
Common Report Var(flag_gcse_lm) Init(1)
2004-07-28 03:11:36 +00:00
Perform enhanced load motion during global common subexpression elimination
fgcse-sm
2007-05-19 01:19:51 +00:00
Common Report Var(flag_gcse_sm) Init(0)
2004-07-28 03:11:36 +00:00
Perform store motion after global common subexpression elimination
fgcse-las
2007-05-19 01:19:51 +00:00
Common Report Var(flag_gcse_las) Init(0)
Perform redundant load after store elimination in global common subexpression
elimination
fgcse-after-reload
Common Report Var(flag_gcse_after_reload)
Perform global common subexpression elimination after register allocation
has finished
2004-07-28 03:11:36 +00:00
fguess-branch-probability
2007-05-19 01:19:51 +00:00
Common Report Var(flag_guess_branch_prob)
2004-07-28 03:11:36 +00:00
Enable guessing of branch probabilities
2007-05-19 01:19:51 +00:00
; Nonzero means ignore `#ident' directives. 0 means handle them.
; Generate position-independent code for executables if possible
; On SVR4 targets, it also controls whether or not to emit a
; string identifying the compiler.
2004-07-28 03:11:36 +00:00
fident
2007-05-19 01:19:51 +00:00
Common Report Var(flag_no_ident,0)
2004-07-28 03:11:36 +00:00
Process #ident directives
fif-conversion
2007-05-19 01:19:51 +00:00
Common Report Var(flag_if_conversion)
2004-07-28 03:11:36 +00:00
Perform conversion of conditional jumps to branchless equivalents
fif-conversion2
2007-05-19 01:19:51 +00:00
Common Report Var(flag_if_conversion2)
2004-07-28 03:11:36 +00:00
Perform conversion of conditional jumps to conditional execution
2007-05-19 01:19:51 +00:00
; -finhibit-size-directive inhibits output of .size for ELF.
; This is used only for compiling crtstuff.c,
; and it may be extended to other effects
; needed for crtstuff.c on other systems.
2004-07-28 03:11:36 +00:00
finhibit-size-directive
2007-05-19 01:19:51 +00:00
Common Report Var(flag_inhibit_size_directive)
2004-07-28 03:11:36 +00:00
Do not generate .size directives
2007-05-19 01:19:51 +00:00
; Nonzero means that functions declared `inline' will be treated
; as `static'. Prevents generation of zillions of copies of unused
; static inline functions; instead, `inlines' are written out
; only when actually used. Used in conjunction with -g. Also
; does the right thing with #pragma interface.
2004-07-28 03:11:36 +00:00
finline
2007-05-19 01:19:51 +00:00
Common Report Var(flag_no_inline,0) Init(2)
2004-07-28 03:11:36 +00:00
Pay attention to the \"inline\" keyword
finline-functions
2007-05-19 01:19:51 +00:00
Common Report Var(flag_inline_functions)
2004-07-28 03:11:36 +00:00
Integrate simple functions into their callers
2007-05-19 01:19:51 +00:00
finline-functions-called-once
Common Report Var(flag_inline_functions_called_once) Init(1)
Integrate functions called once into their callers
2004-07-28 03:11:36 +00:00
finline-limit-
Common RejectNegative Joined UInteger
finline-limit=
Common RejectNegative Joined UInteger
-finline-limit=<number> Limit the size of inlined functions to <number>
finstrument-functions
2007-05-19 01:19:51 +00:00
Common Report Var(flag_instrument_function_entry_exit)
2004-07-28 03:11:36 +00:00
Instrument function entry and exit with profiling calls
2007-05-19 01:19:51 +00:00
fipa-cp
Common Report Var(flag_ipa_cp)
Perform Interprocedural constant propagation
fipa-pure-const
Common Report Var(flag_ipa_pure_const) Init(0)
Discover pure and const functions
fipa-pta
Common Report Var(flag_ipa_pta) Init(0)
Perform interprocedural points-to analysis
fipa-reference
Common Report Var(flag_ipa_reference) Init(0)
Discover readonly and non addressable static variables
fipa-type-escape
Common Report Var(flag_ipa_type_escape) Init(0)
Type based escape and alias analysis
fivopts
Common Report Var(flag_ivopts) Init(1)
Optimize induction variables on trees
fjump-tables
Common Var(flag_jump_tables) Init(1)
Use jump tables for sufficiently large switch statements
2004-07-28 03:11:36 +00:00
fkeep-inline-functions
2007-05-19 01:19:51 +00:00
Common Report Var(flag_keep_inline_functions)
2004-07-28 03:11:36 +00:00
Generate code for functions even if they are fully inlined
fkeep-static-consts
2007-05-19 01:19:51 +00:00
Common Report Var(flag_keep_static_consts) Init(1)
2004-07-28 03:11:36 +00:00
Emit static const variables even if they are not used
fleading-underscore
2007-05-19 01:19:51 +00:00
Common Report Var(flag_leading_underscore) Init(-1)
2004-07-28 03:11:36 +00:00
Give external symbols a leading underscore
floop-optimize
Common
2007-05-19 01:19:51 +00:00
Does nothing. Preserved for backward compatibility.
2004-07-28 03:11:36 +00:00
fmath-errno
Common Report Var(flag_errno_math) Init(0)
2004-07-28 03:11:36 +00:00
Set errno after built-in math functions
fmem-report
2007-05-19 01:19:51 +00:00
Common Report Var(mem_report)
2004-07-28 03:11:36 +00:00
Report on permanent memory allocation
2007-05-19 01:19:51 +00:00
; This will attempt to merge constant section constants, if 1 only
; string constants and constants from constant pool, if 2 also constant
; variables.
2004-07-28 03:11:36 +00:00
fmerge-all-constants
2007-05-19 01:19:51 +00:00
Common Report Var(flag_merge_constants,2) Init(1)
2004-07-28 03:11:36 +00:00
Attempt to merge identical constants and constant variables
fmerge-constants
2007-05-19 01:19:51 +00:00
Common Report Var(flag_merge_constants,1) VarExists
2004-07-28 03:11:36 +00:00
Attempt to merge identical constants across compilation units
fmessage-length=
Common RejectNegative Joined UInteger
-fmessage-length=<number> Limit diagnostics to <number> characters per line. 0 suppresses line-wrapping
2007-05-19 01:19:51 +00:00
fmodulo-sched
Common Report Var(flag_modulo_sched)
Perform SMS based modulo scheduling before the first scheduling pass
2004-07-28 03:11:36 +00:00
2007-05-19 01:19:51 +00:00
fmove-loop-invariants
Common Report Var(flag_move_loop_invariants) Init(1)
Move loop invariant computations out of loops
2004-07-28 03:11:36 +00:00
2007-05-19 01:19:51 +00:00
fmudflap
Common RejectNegative Report Var(flag_mudflap)
Add mudflap bounds-checking instrumentation for single-threaded program
2004-07-28 03:11:36 +00:00
2007-05-19 01:19:51 +00:00
fmudflapth
Common RejectNegative Report VarExists Var(flag_mudflap,2)
Add mudflap bounds-checking instrumentation for multi-threaded program
2004-07-28 03:11:36 +00:00
2007-05-19 01:19:51 +00:00
fmudflapir
Common RejectNegative Report Var(flag_mudflap_ignore_reads)
Ignore read operations when inserting mudflap instrumentation
freschedule-modulo-scheduled-loops
Common Report Var(flag_resched_modulo_sched)
Enable/Disable the traditional scheduling in loops that already passed modulo scheduling
fnon-call-exceptions
Common Report Var(flag_non_call_exceptions)
Support synchronous non-call exceptions
2004-07-28 03:11:36 +00:00
fomit-frame-pointer
2007-05-19 01:19:51 +00:00
Common Report Var(flag_omit_frame_pointer)
2004-07-28 03:11:36 +00:00
When possible do not generate stack frames
foptimize-register-move
2007-05-19 01:19:51 +00:00
Common Report Var(flag_regmove)
2004-07-28 03:11:36 +00:00
Do the full register move optimization pass
foptimize-sibling-calls
2007-05-19 01:19:51 +00:00
Common Report Var(flag_optimize_sibling_calls)
2004-07-28 03:11:36 +00:00
Optimize sibling and tail recursive calls
fpack-struct
2007-05-19 01:19:51 +00:00
Common Report Var(flag_pack_struct)
2004-07-28 03:11:36 +00:00
Pack structure members together without holes
2007-05-19 01:19:51 +00:00
fpack-struct=
Common RejectNegative Joined UInteger
-fpack-struct=<number> Set initial maximum structure member alignment
2004-07-28 03:11:36 +00:00
fpcc-struct-return
2007-05-19 01:19:51 +00:00
Common Report Var(flag_pcc_struct_return,1) VarExists
2004-07-28 03:11:36 +00:00
Return small aggregates in memory, not registers
fpeel-loops
2007-05-19 01:19:51 +00:00
Common Report Var(flag_peel_loops)
2004-07-28 03:11:36 +00:00
Perform loop peeling
fpeephole
2007-05-19 01:19:51 +00:00
Common Report Var(flag_no_peephole,0)
2004-07-28 03:11:36 +00:00
Enable machine specific peephole optimizations
fpeephole2
2007-05-19 01:19:51 +00:00
Common Report Var(flag_peephole2)
2004-07-28 03:11:36 +00:00
Enable an RTL peephole pass before sched2
2007-05-19 01:19:51 +00:00
fPIC
Common Report Var(flag_pic,2)
Generate position-independent code if possible (large mode)
fPIE
Common Report Var(flag_pie,2)
Generate position-independent code for executables if possible (large mode)
2004-07-28 03:11:36 +00:00
fpic
2007-05-19 01:19:51 +00:00
Common Report Var(flag_pic,1) VarExists
Generate position-independent code if possible (small mode)
2004-07-28 03:11:36 +00:00
fpie
2007-05-19 01:19:51 +00:00
Common Report Var(flag_pie,1) VarExists
Generate position-independent code for executables if possible (small mode)
2004-07-28 03:11:36 +00:00
fprefetch-loop-arrays
2007-05-19 01:19:51 +00:00
Common Report Var(flag_prefetch_loop_arrays)
2004-07-28 03:11:36 +00:00
Generate prefetch instructions, if available, for arrays in loops
fprofile
2007-05-19 01:19:51 +00:00
Common Report Var(profile_flag)
2004-07-28 03:11:36 +00:00
Enable basic program profiling code
fprofile-arcs
2007-05-19 01:19:51 +00:00
Common Report Var(profile_arc_flag)
2004-07-28 03:11:36 +00:00
Insert arc-based program profiling code
fprofile-generate
Common
Enable common options for generating profile info for profile feedback directed optimizations
fprofile-use
Common
Enable common options for performing profile feedback directed optimizations
fprofile-values
2007-05-19 01:19:51 +00:00
Common Report Var(flag_profile_values)
2004-07-28 03:11:36 +00:00
Insert code to profile values of expressions
frandom-seed
Common
frandom-seed=
Common Joined RejectNegative
-frandom-seed=<string> Make compile reproducible using <string>
freg-struct-return
2007-05-19 01:19:51 +00:00
Common Report Var(flag_pcc_struct_return,0) VarExists
2004-07-28 03:11:36 +00:00
Return small aggregates in registers
fregmove
2007-05-19 01:19:51 +00:00
Common Report Var(flag_regmove)
2004-07-28 03:11:36 +00:00
Enables a register move optimization
frename-registers
2007-05-19 01:19:51 +00:00
Common Report Var(flag_rename_registers) Init(2)
2004-07-28 03:11:36 +00:00
Perform a register renaming optimization pass
freorder-blocks
2007-05-19 01:19:51 +00:00
Common Report Var(flag_reorder_blocks)
2004-07-28 03:11:36 +00:00
Reorder basic blocks to improve code placement
2007-05-19 01:19:51 +00:00
freorder-blocks-and-partition
Common Report Var(flag_reorder_blocks_and_partition)
Reorder basic blocks and partition into hot and cold sections
2004-07-28 03:11:36 +00:00
freorder-functions
2007-05-19 01:19:51 +00:00
Common Report Var(flag_reorder_functions)
2004-07-28 03:11:36 +00:00
Reorder functions to improve code placement
frerun-cse-after-loop
2007-05-19 01:19:51 +00:00
Common Report Var(flag_rerun_cse_after_loop) Init(2)
2004-07-28 03:11:36 +00:00
Add a common subexpression elimination pass after loop optimizations
frerun-loop-opt
Common
2007-05-19 01:19:51 +00:00
Does nothing. Preserved for backward compatibility.
2004-07-28 03:11:36 +00:00
frounding-math
2007-05-19 01:19:51 +00:00
Common Report Var(flag_rounding_math)
2004-07-28 03:11:36 +00:00
Disable optimizations that assume default FP rounding behavior
fsched-interblock
2007-05-19 01:19:51 +00:00
Common Report Var(flag_schedule_interblock) Init(1)
2004-07-28 03:11:36 +00:00
Enable scheduling across basic blocks
fsched-spec
2007-05-19 01:19:51 +00:00
Common Report Var(flag_schedule_speculative) Init(1)
2004-07-28 03:11:36 +00:00
Allow speculative motion of non-loads
fsched-spec-load
2007-05-19 01:19:51 +00:00
Common Report Var(flag_schedule_speculative_load)
2004-07-28 03:11:36 +00:00
Allow speculative motion of some loads
fsched-spec-load-dangerous
2007-05-19 01:19:51 +00:00
Common Report Var(flag_schedule_speculative_load_dangerous)
2004-07-28 03:11:36 +00:00
Allow speculative motion of more loads
fsched-verbose=
Common RejectNegative Joined
-fsched-verbose=<number> Set the verbosity level of the scheduler
fsched2-use-superblocks
2007-05-19 01:19:51 +00:00
Common Report Var(flag_sched2_use_superblocks)
2004-07-28 03:11:36 +00:00
If scheduling post reload, do superblock scheduling
fsched2-use-traces
2007-05-19 01:19:51 +00:00
Common Report Var(flag_sched2_use_traces)
2004-07-28 03:11:36 +00:00
If scheduling post reload, do trace scheduling
fschedule-insns
2007-05-19 01:19:51 +00:00
Common Report Var(flag_schedule_insns)
2004-07-28 03:11:36 +00:00
Reschedule instructions before register allocation
fschedule-insns2
2007-05-19 01:19:51 +00:00
Common Report Var(flag_schedule_insns_after_reload)
2004-07-28 03:11:36 +00:00
Reschedule instructions after register allocation
2007-05-19 01:19:51 +00:00
; sched_stalled_insns means that insns can be moved prematurely from the queue
; of stalled insns into the ready list.
2004-07-28 03:11:36 +00:00
fsched-stalled-insns
2007-05-19 01:19:51 +00:00
Common Report Var(flag_sched_stalled_insns)
2004-07-28 03:11:36 +00:00
Allow premature scheduling of queued insns
fsched-stalled-insns=
2007-05-19 01:19:51 +00:00
Common RejectNegative Joined UInteger
-fsched-stalled-insns=<number> Set number of queued insns that can be prematurely scheduled
2004-07-28 03:11:36 +00:00
2007-05-19 01:19:51 +00:00
; sched_stalled_insns_dep controls how many recently scheduled cycles will
; be examined for a dependency on a stalled insn that is candidate for
; premature removal from the queue of stalled insns into the ready list (has
; an effect only if the flag 'sched_stalled_insns' is set).
2004-07-28 03:11:36 +00:00
fsched-stalled-insns-dep
2007-05-19 01:19:51 +00:00
Common Report Var(flag_sched_stalled_insns_dep,1) Init(1)
2004-07-28 03:11:36 +00:00
Set dependence distance checking in premature scheduling of queued insns
fsched-stalled-insns-dep=
Common RejectNegative Joined UInteger
2007-05-19 01:19:51 +00:00
-fsched-stalled-insns-dep=<number> Set dependence distance checking in premature scheduling of queued insns
2004-07-28 03:11:36 +00:00
2007-05-19 01:19:51 +00:00
fsection-anchors
Common Report Var(flag_section_anchors)
Access data in the same section from shared anchor points
frtl-abstract-sequences
Common Report Var(flag_rtl_seqabstr)
Perform sequence abstraction optimization on RTL
fsee
Common Report Var(flag_see) Init(0)
Eliminate redundant sign extensions using LCM.
fshow-column
Common C ObjC C++ ObjC++ Report Var(flag_show_column) Init(1)
Show column numbers in diagnostics, when available. Default on
2004-07-28 03:11:36 +00:00
fsignaling-nans
2007-05-19 01:19:51 +00:00
Common Report Var(flag_signaling_nans)
2004-07-28 03:11:36 +00:00
Disable optimizations observable by IEEE signaling NaNs
fsingle-precision-constant
2007-05-19 01:19:51 +00:00
Common Report Var(flag_single_precision_constant)
2004-07-28 03:11:36 +00:00
Convert floating point constants to single precision constants
2007-05-19 01:19:51 +00:00
fsplit-ivs-in-unroller
Common Report Var(flag_split_ivs_in_unroller) Init(1)
Split lifetimes of induction variables when loops are unrolled
fvariable-expansion-in-unroller
Common Report Var(flag_variable_expansion_in_unroller)
Apply variable expansion when loops are unrolled
; Emit code to probe the stack, to help detect stack overflow; also
; may cause large objects to be allocated dynamically.
2004-07-28 03:11:36 +00:00
fstack-check
2007-05-19 01:19:51 +00:00
Common Report Var(flag_stack_check)
2004-07-28 03:11:36 +00:00
Insert stack checking code into the program
fstack-limit
Common
fstack-limit-register=
Common RejectNegative Joined
-fstack-limit-register=<register> Trap if the stack goes past <register>
fstack-limit-symbol=
Common RejectNegative Joined
-fstack-limit-symbol=<name> Trap if the stack goes past symbol <name>
2007-05-19 01:19:51 +00:00
fstack-protector
Common Report Var(flag_stack_protect, 1)
Use propolice as a stack protection method
fstack-protector-all
Common Report RejectNegative Var(flag_stack_protect, 2) VarExists
Use a stack protection method for every function
2004-07-28 03:11:36 +00:00
fstrength-reduce
Common
2007-05-19 01:19:51 +00:00
Does nothing. Preserved for backward compatibility.
2004-07-28 03:11:36 +00:00
2007-05-19 01:19:51 +00:00
; Nonzero if we should do (language-dependent) alias analysis.
; Typically, this analysis will assume that expressions of certain
; types do not alias expressions of certain other types. Only used
; if alias analysis (in general) is enabled.
2004-07-28 03:11:36 +00:00
fstrict-aliasing
2007-05-19 01:19:51 +00:00
Common Report Var(flag_strict_aliasing)
2004-07-28 03:11:36 +00:00
Assume strict aliasing rules apply
2007-05-19 01:19:51 +00:00
fstrict-overflow
Common Report Var(flag_strict_overflow)
Treat signed overflow as undefined
2004-07-28 03:11:36 +00:00
fsyntax-only
2007-05-19 01:19:51 +00:00
Common Report Var(flag_syntax_only)
2004-07-28 03:11:36 +00:00
Check for syntax errors, then stop
ftest-coverage
2007-05-19 01:19:51 +00:00
Common Report Var(flag_test_coverage)
2004-07-28 03:11:36 +00:00
Create data files needed by \"gcov\"
fthread-jumps
2007-05-19 01:19:51 +00:00
Common Report Var(flag_thread_jumps)
2004-07-28 03:11:36 +00:00
Perform jump threading optimizations
ftime-report
2007-05-19 01:19:51 +00:00
Common Report Var(time_report)
2004-07-28 03:11:36 +00:00
Report the time taken by each compiler pass
ftls-model=
Common Joined RejectNegative
-ftls-model=[global-dynamic|local-dynamic|initial-exec|local-exec] Set the default thread-local storage code generation model
2007-05-19 01:19:51 +00:00
ftoplevel-reorder
Common Report Var(flag_toplevel_reorder) Init(1)
Reorder top level functions, variables, and asms
2004-07-28 03:11:36 +00:00
ftracer
2007-05-19 01:19:51 +00:00
Common Report Var(flag_tracer)
2004-07-28 03:11:36 +00:00
Perform superblock formation via tail duplication
2007-05-19 01:19:51 +00:00
; Zero means that floating-point math operations cannot generate a
; (user-visible) trap. This is the case, for example, in nonstop
; IEEE 754 arithmetic.
2004-07-28 03:11:36 +00:00
ftrapping-math
2007-05-19 01:19:51 +00:00
Common Report Var(flag_trapping_math) Init(1)
2004-07-28 03:11:36 +00:00
Assume floating-point operations can trap
ftrapv
2007-05-19 01:19:51 +00:00
Common Report Var(flag_trapv)
2004-07-28 03:11:36 +00:00
Trap for signed overflow in addition, subtraction and multiplication
2007-05-19 01:19:51 +00:00
ftree-ccp
Common Report Var(flag_tree_ccp)
Enable SSA-CCP optimization on trees
ftree-store-ccp
Common Report Var(flag_tree_store_ccp)
Enable SSA-CCP optimization for stores and loads
ftree-ch
Common Report Var(flag_tree_ch)
Enable loop header copying on trees
ftree-combine-temps
Common Report Var(flag_tree_combine_temps)
Coalesce memory temporaries in the SSA->normal pass
ftree-copyrename
Common Report Var(flag_tree_copyrename)
Replace SSA temporaries with better names in copies
ftree-copy-prop
Common Report Var(flag_tree_copy_prop)
Enable copy propagation on trees
ftree-store-copy-prop
Common Report Var(flag_tree_store_copy_prop)
Enable copy propagation for stores and loads
ftree-dce
Common Report Var(flag_tree_dce)
Enable SSA dead code elimination optimization on trees
ftree-dominator-opts
Common Report Var(flag_tree_dom)
Enable dominator optimizations
ftree-dse
Common Report Var(flag_tree_dse)
Enable dead store elimination
ftree-fre
Common Report Var(flag_tree_fre)
Enable Full Redundancy Elimination (FRE) on trees
ftree-loop-im
Common Report Var(flag_tree_loop_im) Init(1)
Enable loop invariant motion on trees
ftree-loop-linear
Common Report Var(flag_tree_loop_linear)
Enable linear loop transforms on trees
ftree-loop-ivcanon
Common Report Var(flag_tree_loop_ivcanon) Init(1)
Create canonical induction variables in loops
ftree-loop-optimize
Common Report Var(flag_tree_loop_optimize) Init(1)
Enable loop optimizations on tree level
ftree-pre
Common Report Var(flag_tree_pre)
Enable SSA-PRE optimization on trees
ftree-salias
Common Report Var(flag_tree_salias)
Perform structural alias analysis
ftree-sink
Common Report Var(flag_tree_sink)
Enable SSA code sinking on trees
ftree-sra
Common Report Var(flag_tree_sra)
Perform scalar replacement of aggregates
ftree-ter
Common Report Var(flag_tree_ter)
Replace temporary expressions in the SSA->normal pass
ftree-lrs
Common Report Var(flag_tree_live_range_split)
Perform live range splitting during the SSA->normal pass
ftree-vrp
Common Report Var(flag_tree_vrp) Init(0)
Perform Value Range Propagation on trees
2004-07-28 03:11:36 +00:00
funit-at-a-time
2007-05-19 01:19:51 +00:00
Common Report Var(flag_unit_at_a_time)
2004-07-28 03:11:36 +00:00
Compile whole compilation unit at a time
funroll-loops
2007-05-19 01:19:51 +00:00
Common Report Var(flag_unroll_loops)
2004-07-28 03:11:36 +00:00
Perform loop unrolling when iteration count is known
funroll-all-loops
2007-05-19 01:19:51 +00:00
Common Report Var(flag_unroll_all_loops)
2004-07-28 03:11:36 +00:00
Perform loop unrolling for all loops
2007-05-19 01:19:51 +00:00
; Nonzero means that loop optimizer may assume that the induction variables
; that control loops do not overflow and that the loops with nontrivial
; exit condition are not infinite
funsafe-loop-optimizations
Common Report Var(flag_unsafe_loop_optimizations)
Allow loop optimizations to assume that the loops behave in normal way
; Nonzero means that unsafe floating-point math optimizations are allowed
; for the sake of speed. IEEE compliance is not guaranteed, and operations
; are allowed to assume that their arguments and results are "normal"
; (e.g., nonnegative for SQRT).
2004-07-28 03:11:36 +00:00
funsafe-math-optimizations
2007-05-19 01:19:51 +00:00
Common Report Var(flag_unsafe_math_optimizations)
2004-07-28 03:11:36 +00:00
Allow math optimizations that may violate IEEE or ISO standards
funswitch-loops
2007-05-19 01:19:51 +00:00
Common Report Var(flag_unswitch_loops)
2004-07-28 03:11:36 +00:00
Perform loop unswitching
funwind-tables
2007-05-19 01:19:51 +00:00
Common Report Var(flag_unwind_tables)
2004-07-28 03:11:36 +00:00
Just generate unwind tables for exception handling
2007-05-19 01:19:51 +00:00
fvar-tracking
Common Report Var(flag_var_tracking) VarExists
Perform variable tracking
ftree-vectorize
Common Report Var(flag_tree_vectorize)
Enable loop vectorization on trees
ftree-vect-loop-version
Common Report Var(flag_tree_vect_loop_version) Init(1)
Enable loop versioning when doing loop vectorization on trees
ftree-vectorizer-verbose=
Common RejectNegative Joined
-ftree-vectorizer-verbose=<number> Set the verbosity level of the vectorizer
; -fverbose-asm causes extra commentary information to be produced in
; the generated assembly code (to make it more readable). This option
; is generally only of use to those who actually need to read the
; generated assembly code (perhaps while debugging the compiler itself).
; -fno-verbose-asm, the default, causes the extra information
; to not be added and is useful when comparing two assembler files.
2004-07-28 03:11:36 +00:00
fverbose-asm
2007-05-19 01:19:51 +00:00
Common Report Var(flag_verbose_asm)
2004-07-28 03:11:36 +00:00
Add extra commentary to assembler output
2007-05-19 01:19:51 +00:00
fvisibility=
Common Joined RejectNegative
-fvisibility=[default|internal|hidden|protected] Set the default symbol visibility
2004-07-28 03:11:36 +00:00
fvpt
2007-05-19 01:19:51 +00:00
Common Report Var(flag_value_profile_transformations)
2004-07-28 03:11:36 +00:00
Use expression value profiles in optimizations
fweb
2007-05-19 01:19:51 +00:00
Common Report Var(flag_web) Init(2)
2004-07-28 03:11:36 +00:00
Construct webs and split unrelated uses of single variable
2007-05-19 01:19:51 +00:00
fwhole-program
Common Report Var(flag_whole_program) Init(0)
Perform whole program optimizations
2004-07-28 03:11:36 +00:00
fwrapv
2007-05-19 01:19:51 +00:00
Common Report Var(flag_wrapv)
2004-07-28 03:11:36 +00:00
Assume signed arithmetic overflow wraps around
fzero-initialized-in-bss
2007-05-19 01:19:51 +00:00
Common Report Var(flag_zero_initialized_in_bss) Init(1)
2004-07-28 03:11:36 +00:00
Put zero initialized data in the bss section
g
Common JoinedOrMissing
Generate debug information in default format
gcoff
2007-05-19 01:19:51 +00:00
Common JoinedOrMissing Negative(gdwarf-2)
2004-07-28 03:11:36 +00:00
Generate debug information in COFF format
gdwarf-2
2007-05-19 01:19:51 +00:00
Common JoinedOrMissing Negative(gstabs)
2004-07-28 03:11:36 +00:00
Generate debug information in DWARF v2 format
ggdb
Common JoinedOrMissing
Generate debug information in default extended format
gstabs
2007-05-19 01:19:51 +00:00
Common JoinedOrMissing Negative(gstabs+)
2004-07-28 03:11:36 +00:00
Generate debug information in STABS format
gstabs+
2007-05-19 01:19:51 +00:00
Common JoinedOrMissing Negative(gvms)
2004-07-28 03:11:36 +00:00
Generate debug information in extended STABS format
gvms
2007-05-19 01:19:51 +00:00
Common JoinedOrMissing Negative(gxcoff)
2004-07-28 03:11:36 +00:00
Generate debug information in VMS format
gxcoff
2007-05-19 01:19:51 +00:00
Common JoinedOrMissing Negative(gxcoff+)
2004-07-28 03:11:36 +00:00
Generate debug information in XCOFF format
gxcoff+
2007-05-19 01:19:51 +00:00
Common JoinedOrMissing Negative(gcoff)
2004-07-28 03:11:36 +00:00
Generate debug information in extended XCOFF format
o
Common Joined Separate
-o <file> Place output into <file>
p
2007-05-19 01:19:51 +00:00
Common Var(profile_flag)
2004-07-28 03:11:36 +00:00
Enable function profiling
pedantic
2007-05-19 01:19:51 +00:00
Common Var(pedantic)
2004-07-28 03:11:36 +00:00
Issue warnings needed for strict compliance to the standard
pedantic-errors
Common
Like -pedantic but issue them as errors
quiet
2007-05-19 01:19:51 +00:00
Common Var(quiet_flag)
2004-07-28 03:11:36 +00:00
Do not display functions compiled or elapsed time
version
2007-05-19 01:19:51 +00:00
Common Var(version_flag)
2004-07-28 03:11:36 +00:00
Display the compiler's version
w
2007-05-19 01:19:51 +00:00
Common Var(inhibit_warnings)
2004-07-28 03:11:36 +00:00
Suppress warnings
; This comment is to ensure we retain the blank line above.