[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.1 Option Summary
Here is a summary of all the options, grouped by type. Explanations are in the following sections.
- Overall Options
See section Options Controlling the Kind of Output. @gccoptlist{-c -S -E -o file -no-canonical-prefixes @gol -pipe -pass-exit-codes @gol -x language -v -### –help[=class[,…]] –target-help @gol –version -wrapper @file -fplugin=file -fplugin-arg-name=arg @gol -fdump-ada-spec[-slim] -fdump-go-spec=file}
- C Language Options
See section Options Controlling C Dialect. @gccoptlist{-ansi -std=standard -fgnu89-inline @gol -aux-info filename -fallow-parameterless-variadic-functions @gol -fno-asm -fno-builtin -fno-builtin-function @gol -fhosted -ffreestanding -fopenmp -fms-extensions -fplan9-extensions @gol -trigraphs -no-integrated-cpp -traditional -traditional-cpp @gol -fallow-single-precision -fcond-mismatch -flax-vector-conversions @gol -fsigned-bitfields -fsigned-char @gol -funsigned-bitfields -funsigned-char}
- C++ Language Options
See section Options Controlling C++ Dialect. @gccoptlist{-fabi-version=n -fno-access-control -fcheck-new @gol -fconserve-space -fconstexpr-depth=n -ffriend-injection @gol -fno-elide-constructors @gol -fno-enforce-eh-specs @gol -ffor-scope -fno-for-scope -fno-gnu-keywords @gol -fno-implicit-templates @gol -fno-implicit-inline-templates @gol -fno-implement-inlines -fms-extensions @gol -fno-nonansi-builtins -fnothrow-opt -fno-operator-names @gol -fno-optional-diags -fpermissive @gol -fno-pretty-templates @gol -frepo -fno-rtti -fstats -ftemplate-depth=n @gol -fno-threadsafe-statics -fuse-cxa-atexit -fno-weak -nostdinc++ @gol -fno-default-inline -fvisibility-inlines-hidden @gol -fvisibility-ms-compat @gol -Wabi -Wconversion-null -Wctor-dtor-privacy @gol -Wdelete-non-virtual-dtor -Wnarrowing -Wnoexcept @gol -Wnon-virtual-dtor -Wreorder @gol -Weffc++ -Wstrict-null-sentinel @gol -Wno-non-template-friend -Wold-style-cast @gol -Woverloaded-virtual -Wno-pmf-conversions @gol -Wsign-promo}
- Objective-C and Objective-C++ Language Options
See section Options Controlling Objective-C and Objective-C++ Dialects. @gccoptlist{-fconstant-string-class=class-name @gol -fgnu-runtime -fnext-runtime @gol -fno-nil-receivers @gol -fobjc-abi-version=n @gol -fobjc-call-cxx-cdtors @gol -fobjc-direct-dispatch @gol -fobjc-exceptions @gol -fobjc-gc @gol -fobjc-nilcheck @gol -fobjc-std=objc1 @gol -freplace-objc-classes @gol -fzero-link @gol -gen-decls @gol -Wassign-intercept @gol -Wno-protocol -Wselector @gol -Wstrict-selector-match @gol -Wundeclared-selector}
- Language Independent Options
See section Options to Control Diagnostic Messages Formatting. @gccoptlist{-fmessage-length=n @gol -fdiagnostics-show-location=[once|every-line] @gol -fno-diagnostics-show-option}
- Warning Options
See section Options to Request or Suppress Warnings. @gccoptlist{-fsyntax-only -fmax-errors=n -pedantic @gol -pedantic-errors @gol -w -Wextra -Wall -Waddress -Waggregate-return -Warray-bounds @gol -Wno-attributes -Wno-builtin-macro-redefined @gol -Wc++-compat -Wc++11-compat -Wcast-align -Wcast-qual @gol -Wchar-subscripts -Wclobbered -Wcomment @gol -Wconversion -Wcoverage-mismatch -Wno-cpp -Wno-deprecated @gol -Wno-deprecated-declarations -Wdisabled-optimization @gol -Wno-div-by-zero -Wdouble-promotion -Wempty-body -Wenum-compare @gol -Wno-endif-labels -Werror -Werror=* @gol -Wfatal-errors -Wfloat-equal -Wformat -Wformat=2 @gol -Wno-format-contains-nul -Wno-format-extra-args -Wformat-nonliteral @gol -Wformat-security -Wformat-y2k @gol -Wframe-larger-than=len -Wno-free-nonheap-object -Wjump-misses-init @gol -Wignored-qualifiers @gol -Wimplicit -Wimplicit-function-declaration -Wimplicit-int @gol -Winit-self -Winline -Wmaybe-uninitialized @gol -Wno-int-to-pointer-cast -Wno-invalid-offsetof @gol -Winvalid-pch -Wlarger-than=len -Wunsafe-loop-optimizations @gol -Wlogical-op -Wlong-long @gol -Wmain -Wmaybe-uninitialized -Wmissing-braces -Wmissing-field-initializers @gol -Wmissing-format-attribute -Wmissing-include-dirs @gol -Wno-mudflap @gol -Wno-multichar -Wnonnull -Wno-overflow @gol -Woverlength-strings -Wpacked -Wpacked-bitfield-compat -Wpadded @gol -Wparentheses -Wpedantic-ms-format -Wno-pedantic-ms-format @gol -Wpointer-arith -Wno-pointer-to-int-cast @gol -Wredundant-decls @gol -Wreturn-type -Wsequence-point -Wshadow @gol -Wsign-compare -Wsign-conversion -Wstack-protector @gol -Wstack-usage=len -Wstrict-aliasing -Wstrict-aliasing=n @gol -Wstrict-overflow -Wstrict-overflow=n @gol -Wsuggest-attribute=[pure|const|noreturn] @gol -Wswitch -Wswitch-default -Wswitch-enum -Wsync-nand @gol -Wsystem-headers -Wtrampolines -Wtrigraphs -Wtype-limits -Wundef @gol -Wuninitialized -Wunknown-pragmas -Wno-pragmas @gol -Wunsuffixed-float-constants -Wunused -Wunused-function @gol -Wunused-label -Wunused-local-typedefs -Wunused-parameter @gol -Wno-unused-result -Wunused-value @gol -Wunused-variable @gol -Wunused-but-set-parameter -Wunused-but-set-variable @gol -Wvariadic-macros -Wvector-operation-performance -Wvla -Wvolatile-register-var -Wwrite-strings -Wzero-as-null-pointer-constant}
- C and Objective-C-only Warning Options
@gccoptlist{-Wbad-function-cast -Wmissing-declarations @gol -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs @gol -Wold-style-declaration -Wold-style-definition @gol -Wstrict-prototypes -Wtraditional -Wtraditional-conversion @gol -Wdeclaration-after-statement -Wpointer-sign}
- Debugging Options
See section Options for Debugging Your Program or GCC. @gccoptlist{-dletters -dumpspecs -dumpmachine -dumpversion @gol -fdbg-cnt-list -fdbg-cnt=counter-value-list @gol -fdisable-ipa-pass_name @gol -fdisable-rtl-pass_name @gol -fdisable-rtl-pass-name=range-list @gol -fdisable-tree-pass_name @gol -fdisable-tree-pass-name=range-list @gol -fdump-noaddr -fdump-unnumbered -fdump-unnumbered-links @gol -fdump-translation-unit[-n] @gol -fdump-class-hierarchy[-n] @gol -fdump-ipa-all -fdump-ipa-cgraph -fdump-ipa-inline @gol -fdump-passes @gol -fdump-statistics @gol -fdump-tree-all @gol -fdump-tree-original[-n] @gol -fdump-tree-optimized[-n] @gol -fdump-tree-cfg -fdump-tree-vcg -fdump-tree-alias @gol -fdump-tree-ch @gol -fdump-tree-ssa[-n] -fdump-tree-pre[-n] @gol -fdump-tree-ccp[-n] -fdump-tree-dce[-n] @gol -fdump-tree-gimple[-raw] -fdump-tree-mudflap[-n] @gol -fdump-tree-dom[-n] @gol -fdump-tree-dse[-n] @gol -fdump-tree-phiprop[-n] @gol -fdump-tree-phiopt[-n] @gol -fdump-tree-forwprop[-n] @gol -fdump-tree-copyrename[-n] @gol -fdump-tree-nrv -fdump-tree-vect @gol -fdump-tree-sink @gol -fdump-tree-sra[-n] @gol -fdump-tree-forwprop[-n] @gol -fdump-tree-fre[-n] @gol -fdump-tree-vrp[-n] @gol -ftree-vectorizer-verbose=n @gol -fdump-tree-storeccp[-n] @gol -fdump-final-insns=file @gol -fcompare-debug[=opts] -fcompare-debug-second @gol -feliminate-dwarf2-dups -feliminate-unused-debug-types @gol -feliminate-unused-debug-symbols -femit-class-debug-always @gol -fenable-kind-pass @gol -fenable-kind-pass=range-list @gol -fdebug-types-section @gol -fmem-report -fpre-ipa-mem-report -fpost-ipa-mem-report -fprofile-arcs @gol -frandom-seed=string -fsched-verbose=n @gol -fsel-sched-verbose -fsel-sched-dump-cfg -fsel-sched-pipelining-verbose @gol -fstack-usage -ftest-coverage -ftime-report -fvar-tracking @gol -fvar-tracking-assignments -fvar-tracking-assignments-toggle @gol -g -glevel -gtoggle -gcoff -gdwarf-version @gol -ggdb -grecord-gcc-switches -gno-record-gcc-switches @gol -gstabs -gstabs+ -gstrict-dwarf -gno-strict-dwarf @gol -gvms -gxcoff -gxcoff+ @gol -fno-merge-debug-strings -fno-dwarf2-cfi-asm @gol -fdebug-prefix-map=old=new @gol -femit-struct-debug-baseonly -femit-struct-debug-reduced @gol -femit-struct-debug-detailed[=spec-list] @gol -p -pg -print-file-name=library -print-libgcc-file-name @gol -print-multi-directory -print-multi-lib -print-multi-os-directory @gol -print-prog-name=program -print-search-dirs -Q @gol -print-sysroot -print-sysroot-headers-suffix @gol -save-temps -save-temps=cwd -save-temps=obj -time[=file]}
- Optimization Options
See section Options that Control Optimization. @gccoptlist{-falign-functions[=n] -falign-jumps[=n] @gol -falign-labels[=n] -falign-loops[=n] -fassociative-math @gol -fauto-inc-dec -fbranch-probabilities -fbranch-target-load-optimize @gol -fbranch-target-load-optimize2 -fbtr-bb-exclusive -fcaller-saves @gol -fcheck-data-deps -fcombine-stack-adjustments -fconserve-stack @gol -fcompare-elim -fcprop-registers -fcrossjumping @gol -fcse-follow-jumps -fcse-skip-blocks -fcx-fortran-rules @gol -fcx-limited-range @gol -fdata-sections -fdce -fdelayed-branch @gol -fdelete-null-pointer-checks -fdevirtualize -fdse @gol -fearly-inlining -fipa-sra -fexpensive-optimizations -ffat-lto-objects @gol -ffast-math -ffinite-math-only -ffloat-store -fexcess-precision=style @gol -fforward-propagate -ffp-contract=style -ffunction-sections @gol -fgcse -fgcse-after-reload -fgcse-las -fgcse-lm -fgraphite-identity @gol -fgcse-sm -fif-conversion -fif-conversion2 -findirect-inlining @gol -finline-functions -finline-functions-called-once -finline-limit=n @gol -finline-small-functions -fipa-cp -fipa-cp-clone -fipa-matrix-reorg @gol -fipa-pta -fipa-profile -fipa-pure-const -fipa-reference @gol -fira-algorithm=algorithm @gol -fira-region=region @gol -fira-loop-pressure -fno-ira-share-save-slots @gol -fno-ira-share-spill-slots -fira-verbose=n @gol -fivopts -fkeep-inline-functions -fkeep-static-consts @gol -floop-block -floop-flatten -floop-interchange -floop-strip-mine @gol -floop-parallelize-all -flto -flto-compression-level @gol -flto-partition=alg -flto-report -fmerge-all-constants @gol -fmerge-constants -fmodulo-sched -fmodulo-sched-allow-regmoves @gol -fmove-loop-invariants fmudflap -fmudflapir -fmudflapth -fno-branch-count-reg @gol -fno-default-inline @gol -fno-defer-pop -fno-function-cse -fno-guess-branch-probability @gol -fno-inline -fno-math-errno -fno-peephole -fno-peephole2 @gol -fno-sched-interblock -fno-sched-spec -fno-signed-zeros @gol -fno-toplevel-reorder -fno-trapping-math -fno-zero-initialized-in-bss @gol -fomit-frame-pointer -foptimize-register-move -foptimize-sibling-calls @gol -fpartial-inlining -fpeel-loops -fpredictive-commoning @gol -fprefetch-loop-arrays @gol -fprofile-correction -fprofile-dir=path -fprofile-generate @gol -fprofile-generate=path @gol -fprofile-use -fprofile-use=path -fprofile-values @gol -freciprocal-math -free -fregmove -frename-registers -freorder-blocks @gol -freorder-blocks-and-partition -freorder-functions @gol -frerun-cse-after-loop -freschedule-modulo-scheduled-loops @gol -frounding-math -fsched2-use-superblocks -fsched-pressure @gol -fsched-spec-load -fsched-spec-load-dangerous @gol -fsched-stalled-insns-dep[=n] -fsched-stalled-insns[=n] @gol -fsched-group-heuristic -fsched-critical-path-heuristic @gol -fsched-spec-insn-heuristic -fsched-rank-heuristic @gol -fsched-last-insn-heuristic -fsched-dep-count-heuristic @gol -fschedule-insns -fschedule-insns2 -fsection-anchors @gol -fselective-scheduling -fselective-scheduling2 @gol -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops @gol -fshrink-wrap -fsignaling-nans -fsingle-precision-constant @gol -fsplit-ivs-in-unroller -fsplit-wide-types -fstack-protector @gol -fstack-protector-all -fstrict-aliasing -fstrict-overflow @gol -fthread-jumps -ftracer -ftree-bit-ccp @gol -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copy-prop @gol -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse @gol -ftree-forwprop -ftree-fre -ftree-loop-if-convert @gol -ftree-loop-if-convert-stores -ftree-loop-im @gol -ftree-phiprop -ftree-loop-distribution -ftree-loop-distribute-patterns @gol -ftree-loop-ivcanon -ftree-loop-linear -ftree-loop-optimize @gol -ftree-parallelize-loops=n -ftree-pre -ftree-pta -ftree-reassoc @gol -ftree-sink -ftree-sra -ftree-switch-conversion -ftree-tail-merge @gol -ftree-ter -ftree-vect-loop-version -ftree-vectorize -ftree-vrp @gol -funit-at-a-time -funroll-all-loops -funroll-loops @gol -funsafe-loop-optimizations -funsafe-math-optimizations -funswitch-loops @gol -fvariable-expansion-in-unroller -fvect-cost-model -fvpt -fweb @gol -fwhole-program -fwpa -fuse-linker-plugin @gol –param name=value -O -O0 -O1 -O2 -O3 -Os -Ofast}
- Preprocessor Options
See section Options Controlling the Preprocessor. @gccoptlist{-Aquestion=answer @gol -A-question[=answer] @gol -C -dD -dI -dM -dN @gol -Dmacro[=defn] -E -H @gol -idirafter dir @gol -include file -imacros file @gol -iprefix file -iwithprefix dir @gol -iwithprefixbefore dir -isystem dir @gol -imultilib dir -isysroot dir @gol -M -MM -MF -MG -MP -MQ -MT -nostdinc @gol -P -fdebug-cpp -ftrack-macro-expansion -fworking-directory @gol -remap -trigraphs -undef -Umacro @gol -Wp,option -Xpreprocessor option}
- Assembler Option
See section Passing Options to the Assembler. @gccoptlist{-Wa,option -Xassembler option}
- Linker Options
See section Options for Linking. @gccoptlist{object-file-name -llibrary @gol -nostartfiles -nodefaultlibs -nostdlib -pie -rdynamic @gol -s -static -static-libgcc -static-libstdc++ -shared @gol -shared-libgcc -symbolic @gol -T script -Wl,option -Xlinker option @gol -u symbol}
- Directory Options
See section Options for Directory Search. @gccoptlist{-Bprefix -Idir -iplugindir=dir @gol -iquotedir -Ldir -specs=file -I- @gol –sysroot=dir}
- Machine Dependent Options
See section Hardware Models and Configurations.
Adapteva Epiphany Options @gccoptlist{-mhalf-reg-file -mprefer-short-insn-regs @gol -mbranch-cost=num -mcmove -mnops=num -msoft-cmpsf @gol -msplit-lohi -mpost-inc -mpost-modify -mstack-offset=num @gol -mround-nearest -mlong-calls -mshort-calls -msmall16 @gol -mfp-mode=mode -mvect-double -max-vect-align=num @gol -msplit-vecmove-early -m1reg-reg}
ARM Options @gccoptlist{-mapcs-frame -mno-apcs-frame @gol -mabi=name @gol -mapcs-stack-check -mno-apcs-stack-check @gol -mapcs-float -mno-apcs-float @gol -mapcs-reentrant -mno-apcs-reentrant @gol -msched-prolog -mno-sched-prolog @gol -mlittle-endian -mbig-endian -mwords-little-endian @gol -mfloat-abi=name -mfpe @gol -mfp16-format=name -mthumb-interwork -mno-thumb-interwork @gol -mcpu=name -march=name -mfpu=name @gol -mstructure-size-boundary=n @gol -mabort-on-noreturn @gol -mlong-calls -mno-long-calls @gol -msingle-pic-base -mno-single-pic-base @gol -mpic-register=reg @gol -mnop-fun-dllimport @gol -mcirrus-fix-invalid-insns -mno-cirrus-fix-invalid-insns @gol -mpoke-function-name @gol -mthumb -marm @gol -mtpcs-frame -mtpcs-leaf-frame @gol -mcaller-super-interworking -mcallee-super-interworking @gol -mtp=name -mtls-dialect=dialect @gol -mword-relocations @gol -mfix-cortex-m3-ldrd @gol -munaligned-access}
AVR Options @gccoptlist{-mmcu=mcu -maccumulate-args -mbranch-cost=cost @gol -mcall-prologues -mint8 -mno-interrupts -mrelax -mshort-calls @gol -mstrict-X -mtiny-stack}
Blackfin Options @gccoptlist{-mcpu=cpu[-sirevision] @gol -msim -momit-leaf-frame-pointer -mno-omit-leaf-frame-pointer @gol -mspecld-anomaly -mno-specld-anomaly -mcsync-anomaly -mno-csync-anomaly @gol -mlow-64k -mno-low64k -mstack-check-l1 -mid-shared-library @gol -mno-id-shared-library -mshared-library-id=n @gol -mleaf-id-shared-library -mno-leaf-id-shared-library @gol -msep-data -mno-sep-data -mlong-calls -mno-long-calls @gol -mfast-fp -minline-plt -mmulticore -mcorea -mcoreb -msdram @gol -micplb}
C6X Options @gccoptlist{-mbig-endian -mlittle-endian -march=cpu @gol -msim -msdata=sdata-type}
CRIS Options @gccoptlist{-mcpu=cpu -march=cpu -mtune=cpu @gol -mmax-stack-frame=n -melinux-stacksize=n @gol -metrax4 -metrax100 -mpdebug -mcc-init -mno-side-effects @gol -mstack-align -mdata-align -mconst-align @gol -m32-bit -m16-bit -m8-bit -mno-prologue-epilogue -mno-gotplt @gol -melf -maout -melinux -mlinux -sim -sim2 @gol -mmul-bug-workaround -mno-mul-bug-workaround}
CR16 Options @gccoptlist{-mmac @gol -mcr16cplus -mcr16c @gol -msim -mint32 -mbit-ops -mdata-model=model}
Darwin Options @gccoptlist{-all_load -allowable_client -arch -arch_errors_fatal @gol -arch_only -bind_at_load -bundle -bundle_loader @gol -client_name -compatibility_version -current_version @gol -dead_strip @gol -dependency-file -dylib_file -dylinker_install_name @gol -dynamic -dynamiclib -exported_symbols_list @gol -filelist -flat_namespace -force_cpusubtype_ALL @gol -force_flat_namespace -headerpad_max_install_names @gol -iframework @gol -image_base -init -install_name -keep_private_externs @gol -multi_module -multiply_defined -multiply_defined_unused @gol -noall_load -no_dead_strip_inits_and_terms @gol -nofixprebinding -nomultidefs -noprebind -noseglinkedit @gol -pagezero_size -prebind -prebind_all_twolevel_modules @gol -private_bundle -read_only_relocs -sectalign @gol -sectobjectsymbols -whyload -seg1addr @gol -sectcreate -sectobjectsymbols -sectorder @gol -segaddr -segs_read_only_addr -segs_read_write_addr @gol -seg_addr_table -seg_addr_table_filename -seglinkedit @gol -segprot -segs_read_only_addr -segs_read_write_addr @gol -single_module -static -sub_library -sub_umbrella @gol -twolevel_namespace -umbrella -undefined @gol -unexported_symbols_list -weak_reference_mismatches @gol -whatsloaded -F -gused -gfull -mmacosx-version-min=version @gol -mkernel -mone-byte-bool}
DEC Alpha Options @gccoptlist{-mno-fp-regs -msoft-float -malpha-as -mgas @gol -mieee -mieee-with-inexact -mieee-conformant @gol -mfp-trap-mode=mode -mfp-rounding-mode=mode @gol -mtrap-precision=mode -mbuild-constants @gol -mcpu=cpu-type -mtune=cpu-type @gol -mbwx -mmax -mfix -mcix @gol -mfloat-vax -mfloat-ieee @gol -mexplicit-relocs -msmall-data -mlarge-data @gol -msmall-text -mlarge-text @gol -mmemory-latency=time}
DEC Alpha/VMS Options @gccoptlist{-mvms-return-codes -mdebug-main=prefix -mmalloc64}
FR30 Options @gccoptlist{-msmall-model -mno-lsim}
FRV Options @gccoptlist{-mgpr-32 -mgpr-64 -mfpr-32 -mfpr-64 @gol -mhard-float -msoft-float @gol -malloc-cc -mfixed-cc -mdword -mno-dword @gol -mdouble -mno-double @gol -mmedia -mno-media -mmuladd -mno-muladd @gol -mfdpic -minline-plt -mgprel-ro -multilib-library-pic @gol -mlinked-fp -mlong-calls -malign-labels @gol -mlibrary-pic -macc-4 -macc-8 @gol -mpack -mno-pack -mno-eflags -mcond-move -mno-cond-move @gol -moptimize-membar -mno-optimize-membar @gol -mscc -mno-scc -mcond-exec -mno-cond-exec @gol -mvliw-branch -mno-vliw-branch @gol -mmulti-cond-exec -mno-multi-cond-exec -mnested-cond-exec @gol -mno-nested-cond-exec -mtomcat-stats @gol -mTLS -mtls @gol -mcpu=cpu}
GNU/Linux Options @gccoptlist{-mglibc -muclibc -mbionic -mandroid @gol -tno-android-cc -tno-android-ld}
H8/300 Options @gccoptlist{-mrelax -mh -ms -mn -mint32 -malign-300}
HPPA Options @gccoptlist{-march=architecture-type @gol -mbig-switch -mdisable-fpregs -mdisable-indexing @gol -mfast-indirect-calls -mgas -mgnu-ld -mhp-ld @gol -mfixed-range=register-range @gol -mjump-in-delay -mlinker-opt -mlong-calls @gol -mlong-load-store -mno-big-switch -mno-disable-fpregs @gol -mno-disable-indexing -mno-fast-indirect-calls -mno-gas @gol -mno-jump-in-delay -mno-long-load-store @gol -mno-portable-runtime -mno-soft-float @gol -mno-space-regs -msoft-float -mpa-risc-1-0 @gol -mpa-risc-1-1 -mpa-risc-2-0 -mportable-runtime @gol -mschedule=cpu-type -mspace-regs -msio -mwsio @gol -munix=unix-std -nolibdld -static -threads}
i386 and x86-64 Options @gccoptlist{-mtune=cpu-type -march=cpu-type @gol -mfpmath=unit @gol -masm=dialect -mno-fancy-math-387 @gol -mno-fp-ret-in-387 -msoft-float @gol -mno-wide-multiply -mrtd -malign-double @gol -mpreferred-stack-boundary=num @gol -mincoming-stack-boundary=num @gol -mcld -mcx16 -msahf -mmovbe -mcrc32 @gol -mrecip -mrecip=opt @gol -mvzeroupper -mprefer-avx128 @gol -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx @gol -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mf16c -mfma @gol -msse4a -m3dnow -mpopcnt -mabm -mbmi -mtbm -mfma4 -mxop -mlzcnt @gol -mbmi2 -mlwp -mthreads -mno-align-stringops -minline-all-stringops @gol -minline-stringops-dynamically -mstringop-strategy=alg @gol -mpush-args -maccumulate-outgoing-args -m128bit-long-double @gol -m96bit-long-double -mregparm=num -msseregparm @gol -mveclibabi=type -mvect8-ret-in-mem @gol -mpc32 -mpc64 -mpc80 -mstackrealign @gol -momit-leaf-frame-pointer -mno-red-zone -mno-tls-direct-seg-refs @gol -mcmodel=code-model -mabi=name @gol -m32 -m64 -mx32 -mlarge-data-threshold=num @gol -msse2avx -mfentry -m8bit-idiv @gol -mavx256-split-unaligned-load -mavx256-split-unaligned-store}
i386 and x86-64 Windows Options @gccoptlist{-mconsole -mcygwin -mno-cygwin -mdll @gol -mnop-fun-dllimport -mthread @gol -municode -mwin32 -mwindows -fno-set-stack-executable}
IA-64 Options @gccoptlist{-mbig-endian -mlittle-endian -mgnu-as -mgnu-ld -mno-pic @gol -mvolatile-asm-stop -mregister-names -msdata -mno-sdata @gol -mconstant-gp -mauto-pic -mfused-madd @gol -minline-float-divide-min-latency @gol -minline-float-divide-max-throughput @gol -mno-inline-float-divide @gol -minline-int-divide-min-latency @gol -minline-int-divide-max-throughput @gol -mno-inline-int-divide @gol -minline-sqrt-min-latency -minline-sqrt-max-throughput @gol -mno-inline-sqrt @gol -mdwarf2-asm -mearly-stop-bits @gol -mfixed-range=register-range -mtls-size=tls-size @gol -mtune=cpu-type -milp32 -mlp64 @gol -msched-br-data-spec -msched-ar-data-spec -msched-control-spec @gol -msched-br-in-data-spec -msched-ar-in-data-spec -msched-in-control-spec @gol -msched-spec-ldc -msched-spec-control-ldc @gol -msched-prefer-non-data-spec-insns -msched-prefer-non-control-spec-insns @gol -msched-stop-bits-after-every-cycle -msched-count-spec-in-critical-path @gol -msel-sched-dont-check-control-spec -msched-fp-mem-deps-zero-cost @gol -msched-max-memory-insns-hard-limit -msched-max-memory-insns=max-insns}
IA-64/VMS Options @gccoptlist{-mvms-return-codes -mdebug-main=prefix -mmalloc64}
LM32 Options @gccoptlist{-mbarrel-shift-enabled -mdivide-enabled -mmultiply-enabled @gol -msign-extend-enabled -muser-enabled}
M32R/D Options @gccoptlist{-m32r2 -m32rx -m32r @gol -mdebug @gol -malign-loops -mno-align-loops @gol -missue-rate=number @gol -mbranch-cost=number @gol -mmodel=code-size-model-type @gol -msdata=sdata-type @gol -mno-flush-func -mflush-func=name @gol -mno-flush-trap -mflush-trap=number @gol -G num}
M32C Options @gccoptlist{-mcpu=cpu -msim -memregs=number}
M680x0 Options @gccoptlist{-march=arch -mcpu=cpu -mtune=tune -m68000 -m68020 -m68020-40 -m68020-60 -m68030 -m68040 @gol -m68060 -mcpu32 -m5200 -m5206e -m528x -m5307 -m5407 @gol -mcfv4e -mbitfield -mno-bitfield -mc68000 -mc68020 @gol -mnobitfield -mrtd -mno-rtd -mdiv -mno-div -mshort @gol -mno-short -mhard-float -m68881 -msoft-float -mpcrel @gol -malign-int -mstrict-align -msep-data -mno-sep-data @gol -mshared-library-id=n -mid-shared-library -mno-id-shared-library @gol -mxgot -mno-xgot}
MCore Options @gccoptlist{-mhardlit -mno-hardlit -mdiv -mno-div -mrelax-immediates @gol -mno-relax-immediates -mwide-bitfields -mno-wide-bitfields @gol -m4byte-functions -mno-4byte-functions -mcallgraph-data @gol -mno-callgraph-data -mslow-bytes -mno-slow-bytes -mno-lsim @gol -mlittle-endian -mbig-endian -m210 -m340 -mstack-increment}
MeP Options @gccoptlist{-mabsdiff -mall-opts -maverage -mbased=n -mbitops @gol -mc=n -mclip -mconfig=name -mcop -mcop32 -mcop64 -mivc2 @gol -mdc -mdiv -meb -mel -mio-volatile -ml -mleadz -mm -mminmax @gol -mmult -mno-opts -mrepeat -ms -msatur -msdram -msim -msimnovec -mtf @gol -mtiny=n}
MicroBlaze Options @gccoptlist{-msoft-float -mhard-float -msmall-divides -mcpu=cpu @gol -mmemcpy -mxl-soft-mul -mxl-soft-div -mxl-barrel-shift @gol -mxl-pattern-compare -mxl-stack-check -mxl-gp-opt -mno-clearbss @gol -mxl-multiply-high -mxl-float-convert -mxl-float-sqrt @gol -mxl-mode-app-model}
MIPS Options @gccoptlist{-EL -EB -march=arch -mtune=arch @gol -mips1 -mips2 -mips3 -mips4 -mips32 -mips32r2 @gol -mips64 -mips64r2 @gol -mips16 -mno-mips16 -mflip-mips16 @gol -minterlink-mips16 -mno-interlink-mips16 @gol -mabi=abi -mabicalls -mno-abicalls @gol -mshared -mno-shared -mplt -mno-plt -mxgot -mno-xgot @gol -mgp32 -mgp64 -mfp32 -mfp64 -mhard-float -msoft-float @gol -msingle-float -mdouble-float -mdsp -mno-dsp -mdspr2 -mno-dspr2 @gol -mfpu=fpu-type @gol -msmartmips -mno-smartmips @gol -mpaired-single -mno-paired-single -mdmx -mno-mdmx @gol -mips3d -mno-mips3d -mmt -mno-mt -mllsc -mno-llsc @gol -mlong64 -mlong32 -msym32 -mno-sym32 @gol -Gnum -mlocal-sdata -mno-local-sdata @gol -mextern-sdata -mno-extern-sdata -mgpopt -mno-gopt @gol -membedded-data -mno-embedded-data @gol -muninit-const-in-rodata -mno-uninit-const-in-rodata @gol -mcode-readable=setting @gol -msplit-addresses -mno-split-addresses @gol -mexplicit-relocs -mno-explicit-relocs @gol -mcheck-zero-division -mno-check-zero-division @gol -mdivide-traps -mdivide-breaks @gol -mmemcpy -mno-memcpy -mlong-calls -mno-long-calls @gol -mmad -mno-mad -mfused-madd -mno-fused-madd -nocpp @gol -mfix-24k -mno-fix-24k @gol -mfix-r4000 -mno-fix-r4000 -mfix-r4400 -mno-fix-r4400 @gol -mfix-r10000 -mno-fix-r10000 -mfix-vr4120 -mno-fix-vr4120 @gol -mfix-vr4130 -mno-fix-vr4130 -mfix-sb1 -mno-fix-sb1 @gol -mflush-func=func -mno-flush-func @gol -mbranch-cost=num -mbranch-likely -mno-branch-likely @gol -mfp-exceptions -mno-fp-exceptions @gol -mvr4130-align -mno-vr4130-align -msynci -mno-synci @gol -mrelax-pic-calls -mno-relax-pic-calls -mmcount-ra-address}
MMIX Options @gccoptlist{-mlibfuncs -mno-libfuncs -mepsilon -mno-epsilon -mabi=gnu @gol -mabi=mmixware -mzero-extend -mknuthdiv -mtoplevel-symbols @gol -melf -mbranch-predict -mno-branch-predict -mbase-addresses @gol -mno-base-addresses -msingle-exit -mno-single-exit}
MN10300 Options @gccoptlist{-mmult-bug -mno-mult-bug @gol -mno-am33 -mam33 -mam33-2 -mam34 @gol -mtune=cpu-type @gol -mreturn-pointer-on-d0 @gol -mno-crt0 -mrelax -mliw -msetlb}
PDP-11 Options @gccoptlist{-mfpu -msoft-float -mac0 -mno-ac0 -m40 -m45 -m10 @gol -mbcopy -mbcopy-builtin -mint32 -mno-int16 @gol -mint16 -mno-int32 -mfloat32 -mno-float64 @gol -mfloat64 -mno-float32 -mabshi -mno-abshi @gol -mbranch-expensive -mbranch-cheap @gol -munix-asm -mdec-asm}
picoChip Options @gccoptlist{-mae=ae_type -mvliw-lookahead=N @gol -msymbol-as-address -mno-inefficient-warnings}
PowerPC Options See RS/6000 and PowerPC Options.
RL78 Options @gccoptlist{-msim -mmul=none -mmul=g13 -mmul=rl78}
RS/6000 and PowerPC Options @gccoptlist{-mcpu=cpu-type @gol -mtune=cpu-type @gol -mcmodel=code-model @gol -mpower -mno-power -mpower2 -mno-power2 @gol -mpowerpc -mpowerpc64 -mno-powerpc @gol -maltivec -mno-altivec @gol -mpowerpc-gpopt -mno-powerpc-gpopt @gol -mpowerpc-gfxopt -mno-powerpc-gfxopt @gol -mmfcrf -mno-mfcrf -mpopcntb -mno-popcntb -mpopcntd -mno-popcntd @gol -mfprnd -mno-fprnd @gol -mcmpb -mno-cmpb -mmfpgpr -mno-mfpgpr -mhard-dfp -mno-hard-dfp @gol -mnew-mnemonics -mold-mnemonics @gol -mfull-toc -mminimal-toc -mno-fp-in-toc -mno-sum-in-toc @gol -m64 -m32 -mxl-compat -mno-xl-compat -mpe @gol -malign-power -malign-natural @gol -msoft-float -mhard-float -mmultiple -mno-multiple @gol -msingle-float -mdouble-float -msimple-fpu @gol -mstring -mno-string -mupdate -mno-update @gol -mavoid-indexed-addresses -mno-avoid-indexed-addresses @gol -mfused-madd -mno-fused-madd -mbit-align -mno-bit-align @gol -mstrict-align -mno-strict-align -mrelocatable @gol -mno-relocatable -mrelocatable-lib -mno-relocatable-lib @gol -mtoc -mno-toc -mlittle -mlittle-endian -mbig -mbig-endian @gol -mdynamic-no-pic -maltivec -mswdiv -msingle-pic-base @gol -mprioritize-restricted-insns=priority @gol -msched-costly-dep=dependence_type @gol -minsert-sched-nops=scheme @gol -mcall-sysv -mcall-netbsd @gol -maix-struct-return -msvr4-struct-return @gol -mabi=abi-type -msecure-plt -mbss-plt @gol -mblock-move-inline-limit=num @gol -misel -mno-isel @gol -misel=yes -misel=no @gol -mspe -mno-spe @gol -mspe=yes -mspe=no @gol -mpaired @gol -mgen-cell-microcode -mwarn-cell-microcode @gol -mvrsave -mno-vrsave @gol -mmulhw -mno-mulhw @gol -mdlmzb -mno-dlmzb @gol -mfloat-gprs=yes -mfloat-gprs=no -mfloat-gprs=single -mfloat-gprs=double @gol -mprototype -mno-prototype @gol -msim -mmvme -mads -myellowknife -memb -msdata @gol -msdata=opt -mvxworks -G num -pthread @gol -mrecip -mrecip=opt -mno-recip -mrecip-precision @gol -mno-recip-precision @gol -mveclibabi=type -mfriz -mno-friz @gol -mpointers-to-nested-functions -mno-pointers-to-nested-functions @gol -msave-toc-indirect -mno-save-toc-indirect}
RX Options @gccoptlist{-m64bit-doubles -m32bit-doubles -fpu -nofpu@gol -mcpu=@gol -mbig-endian-data -mlittle-endian-data @gol -msmall-data @gol -msim -mno-sim@gol -mas100-syntax -mno-as100-syntax@gol -mrelax@gol -mmax-constant-size=@gol -mint-register=@gol -mpid@gol -msave-acc-in-interrupts}
S/390 and zSeries Options @gccoptlist{-mtune=cpu-type -march=cpu-type @gol -mhard-float -msoft-float -mhard-dfp -mno-hard-dfp @gol -mlong-double-64 -mlong-double-128 @gol -mbackchain -mno-backchain -mpacked-stack -mno-packed-stack @gol -msmall-exec -mno-small-exec -mmvcle -mno-mvcle @gol -m64 -m31 -mdebug -mno-debug -mesa -mzarch @gol -mtpf-trace -mno-tpf-trace -mfused-madd -mno-fused-madd @gol -mwarn-framesize -mwarn-dynamicstack -mstack-size -mstack-guard}
Score Options @gccoptlist{-meb -mel @gol -mnhwloop @gol -muls @gol -mmac @gol -mscore5 -mscore5u -mscore7 -mscore7d}
SH Options @gccoptlist{-m1 -m2 -m2e @gol -m2a-nofpu -m2a-single-only -m2a-single -m2a @gol -m3 -m3e @gol -m4-nofpu -m4-single-only -m4-single -m4 @gol -m4a-nofpu -m4a-single-only -m4a-single -m4a -m4al @gol -m5-64media -m5-64media-nofpu @gol -m5-32media -m5-32media-nofpu @gol -m5-compact -m5-compact-nofpu @gol -mb -ml -mdalign -mrelax @gol -mbigtable -mfmovd -mhitachi -mrenesas -mno-renesas -mnomacsave @gol -mieee -mno-ieee -mbitops -misize -minline-ic_invalidate -mpadstruct @gol -mspace -mprefergot -musermode -multcost=number -mdiv=strategy @gol -mdivsi3_libfunc=name -mfixed-range=register-range @gol -madjust-unroll -mindexed-addressing -mgettrcost=number -mpt-fixed @gol -maccumulate-outgoing-args -minvalid-symbols -msoft-atomic @gol -mbranch-cost=num -mcbranchdi -mcmpeqdi -mfused-madd -mpretend-cmove}
Solaris 2 Options @gccoptlist{-mimpure-text -mno-impure-text @gol -pthreads -pthread}
SPARC Options @gccoptlist{-mcpu=cpu-type @gol -mtune=cpu-type @gol -mcmodel=code-model @gol -mmemory-model=mem-model @gol -m32 -m64 -mapp-regs -mno-app-regs @gol -mfaster-structs -mno-faster-structs -mflat -mno-flat @gol -mfpu -mno-fpu -mhard-float -msoft-float @gol -mhard-quad-float -msoft-quad-float @gol -mstack-bias -mno-stack-bias @gol -munaligned-doubles -mno-unaligned-doubles @gol -mv8plus -mno-v8plus -mvis -mno-vis @gol -mvis2 -mno-vis2 -mvis3 -mno-vis3 @gol -mfmaf -mno-fmaf -mpopc -mno-popc @gol -mfix-at697f}
SPU Options @gccoptlist{-mwarn-reloc -merror-reloc @gol -msafe-dma -munsafe-dma @gol -mbranch-hints @gol -msmall-mem -mlarge-mem -mstdmain @gol -mfixed-range=register-range @gol -mea32 -mea64 @gol -maddress-space-conversion -mno-address-space-conversion @gol -mcache-size=cache-size @gol -matomic-updates -mno-atomic-updates}
System V Options @gccoptlist{-Qy -Qn -YP,paths -Ym,dir}
TILE-Gx Options @gccoptlist{-mcpu=cpu -m32 -m64}
TILEPro Options @gccoptlist{-mcpu=cpu -m32}
V850 Options @gccoptlist{-mlong-calls -mno-long-calls -mep -mno-ep @gol -mprolog-function -mno-prolog-function -mspace @gol -mtda=n -msda=n -mzda=n @gol -mapp-regs -mno-app-regs @gol -mdisable-callt -mno-disable-callt @gol -mv850e2v3 @gol -mv850e2 @gol -mv850e1 -mv850es @gol -mv850e @gol -mv850 -mbig-switch}
VAX Options @gccoptlist{-mg -mgnu -munix}
VxWorks Options @gccoptlist{-mrtp -non-static -Bstatic -Bdynamic @gol -Xbind-lazy -Xbind-now}
x86-64 Options See i386 and x86-64 Options.
Xstormy16 Options @gccoptlist{-msim}
Xtensa Options @gccoptlist{-mconst16 -mno-const16 @gol -mfused-madd -mno-fused-madd @gol -mforce-no-pic @gol -mserialize-volatile -mno-serialize-volatile @gol -mtext-section-literals -mno-text-section-literals @gol -mtarget-align -mno-target-align @gol -mlongcalls -mno-longcalls}
zSeries Options See S/390 and zSeries Options.
- Code Generation Options
See section Options for Code Generation Conventions. @gccoptlist{-fcall-saved-reg -fcall-used-reg @gol -ffixed-reg -fexceptions @gol -fnon-call-exceptions -funwind-tables @gol -fasynchronous-unwind-tables @gol -finhibit-size-directive -finstrument-functions @gol -finstrument-functions-exclude-function-list=sym,sym,… @gol -finstrument-functions-exclude-file-list=file,file,… @gol -fno-common -fno-ident @gol -fpcc-struct-return -fpic -fPIC -fpie -fPIE @gol -fno-jump-tables @gol -frecord-gcc-switches @gol -freg-struct-return -fshort-enums @gol -fshort-double -fshort-wchar @gol -fverbose-asm -fpack-struct[=n] -fstack-check @gol -fstack-limit-register=reg -fstack-limit-symbol=sym @gol -fno-stack-limit -fsplit-stack @gol -fleading-underscore -ftls-model=model @gol -ftrapv -fwrapv -fbounds-check @gol -fvisibility -fstrict-volatile-bitfields}
3.2 Options Controlling the Kind of Output | Controlling the kind of output: an executable, object files, assembler files, or preprocessed source. | |
3.4 Options Controlling C Dialect | Controlling the variant of C language compiled. | |
3.5 Options Controlling C++ Dialect | Variations on C++. | |
3.6 Options Controlling Objective-C and Objective-C++ Dialects | Variations on Objective-C and Objective-C++. | |
3.7 Options to Control Diagnostic Messages Formatting | Controlling how diagnostics should be formatted. | |
3.8 Options to Request or Suppress Warnings | How picky should the compiler be? | |
3.9 Options for Debugging Your Program or GCC | Symbol tables, measurements, and debugging dumps. | |
3.10 Options That Control Optimization | How much optimization? | |
3.11 Options Controlling the Preprocessor | Controlling header files and macro definitions. Also, getting dependency information for Make. | |
3.12 Passing Options to the Assembler | Passing options to the assembler. | |
3.13 Options for Linking | Specifying libraries and so on. | |
3.14 Options for Directory Search | Where to find header files and libraries. Where to find the compiler executable files. | |
3.15 Specifying subprocesses and the switches to pass to them | How to pass switches to sub-processes. | |
3.16 Specifying Target Machine and Compiler Version | Running a cross-compiler, or an old version of GCC. |
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on June 14, 2014 using texi2html 5.0.