Go to the previous, next section.

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.
-c  -S  -E  -o file  -pipe  -v  -x language 

C Language Options
See section Options Controlling C Dialect.
-ansi  -fcond-mismatch  -fno-asm  -fno-builtin
-fsigned-bitfields  -fsigned-char 
-funsigned-bitfields  -funsigned-char  -fwritable-strings
-traditional  -traditional-cpp  -trigraphs

C++ Language Options
See section Options Controlling C++ Dialect.
-fall-virtual  -fdollars-in-identifiers
-felide-constructors  -fenum-int-equiv
-fexternal-templates  -fmemoize-lookups
-fno-strict-prototype  -fnonnull-objects
-fthis-is-variable  -nostdinc++

Warning Options
See section Options to Request or Suppress Warnings.
-fsyntax-only  -pedantic  -pedantic-errors
-w  -W  -Wall  -Waggregate-return  -Wcast-align  
-Wcast-qual  -Wchar-subscript  -Wcomment  -Wconversion
-Wenum-clash  -Werror  -Wformat  -Wid-clash-len
-Wimplicit  -Wimport  -Winline  -Wmissing-prototypes
-Wnested-externs  -Woverloaded-virtual  -Wparentheses
-Wpointer-arith  -Wredundant-decls  -Wreturn-type
-Wshadow  -Wstrict-prototypes  -Wswitch
-Wtemplate-debugging  -Wtraditional  -Wtrigraphs
-Wuninitialized  -Wunused  -Wwrite-strings

Debugging Options
See section Options for Debugging Your Program or GNU CC.
-a  -dletters  -fpretend-float 
-g  -glevel -ggdb  -gdwarf -gdwarf+
-gstabs  -gstabs+  -gcoff -gxcoff  -gxcoff+
-p  -pg  -save-temps  -print-libgcc-file-name

Optimization Options
See section Options That Control Optimization.
-fcaller-saves  -fcse-follow-jumps  -fcse-skip-blocks
-fdelayed-branch   -fexpensive-optimizations  
-ffast-math  -ffloat-store  -fforce-addr  -fforce-mem
-finline-functions  -fkeep-inline-functions  
-fno-default-inline  -fno-defer-pop  -fno-function-cse
-fno-inline  -fno-peephole  -fomit-frame-pointer  
-frerun-cse-after-loop  -fschedule-insns  
-fschedule-insns2  -fstrength-reduce  -fthread-jumps 
-funroll-all-loops  -funroll-loops
-O  -O2

Preprocessor Options
See section Options Controlling the Preprocessor.
-Aassertion  -C  -dD  -dM  -dN
-Dmacro[=defn]  -E  -H
-idirafter dir
-include file  -imacros file
-iprefix file  -iwithprefix dir
-iwithprefixbefore dir
-M  -MD  -MM  -MMD  -nostdinc  -P  -trigraphs  -Umacro

Assembler Option
See section Passing Options to the Assembler.
-Wa,option

Linker Options
See section Options for Linking.
object-file-name
-llibrary  -nostartfiles  -nostdlib  
-static  -shared  -symbolic  
-Wl,option  -Xlinker option
-u symbol

Directory Options
See section Options for Directory Search.
-Bprefix  -Idir  -I-  -Ldir

Target Options
See section Specifying Target Machine and Compiler Version.
-b machine  -V version

Machine Dependent Options
See section Hardware Models and Configurations.
M680x0 Options
-m68000  -m68020  -m68020-40  -m68030  -m68040  -m68881  
-mbitfield  -mc68000  -mc68020  -mfpa  -mnobitfield  
-mrtd  -mshort  -msoft-float 

VAX Options
-mg  -mgnu  -munix

SPARC Options
-mepilogue  -mfpu  -mhard-float
-mno-fpu  -mno-epilogue  -msoft-float
-msparclite  -mv8

Convex Options
-mc1  -mc2  -mc32  -mc34  -mc38
-margcount  -mnoargcount
-mlong32  -mlong64
-mbolatile-cache  -mvolatile-nocache

AMD29K Options 
-m29000  -m29050  -mbw  -mdw  -mkernel-registers
-mlarge  -mnbw  -mnodw  -mnormal  -msmall  -mstack-check
-muser-registers

M88K Options
-m88000  -m88100  -m88110  -mbig-pic  
-mcheck-zero-division  -mhandle-large-shift 
-midentify-revision  -mno-check-zero-division 
-mno-ocs-debug-info  -mno-ocs-frame-position 
-mno-optimize-arg-area  -mno-serialize-volatile
-mno-underscores  -mocs-debug-info
-mocs-frame-position  -moptimize-arg-area
-mserialize-volatile  -mshort-data-num  -msvr3 
-msvr4  -mtrap-large-shift  -muse-div-instruction 
-mversion-03.00  -mwarn-passed-structs

RS/6000 Options and PowerPC
-mcpu=cpu type
-mpower -mno-power -mpower2 -pno-power2
-mpowerpc -mno-powerpc -mpowerpcsqr -mno-powerpcsqr
-mpowerpc64 -mno-powerpc64
-mnew-mnemonics -mno-new-mnemonics
-mnormal-toc   -mminimal-toc  -mno-fop-in-toc

RT Options
-mcall-lib-mul  -mfp-arg-in-fpregs  -mfp-arg-in-gregs
-mfull-fp-blocks  -mhc-struct-return  -min-line-mul
-mminimum-fp-blocks  -mnohc-struct-return

MIPS Options
-mcpu=cpu  type  -mips2  -mips3  -mint64
-mlong64  -mlonglong128  -mmips-as  -mgas  -mrnames
-mno-rnames  -mgpopt  -mno-gpopt  -mstats  -mno-stats
-mmemcpy  -mno-memcpy  -mno-mips-tfile  -mmips-tfile
-msoft-float  -mhard-float  -mabicalls  -mno-abicalls
-mhalf-pic  -mno-half-pic -mlong-calls -mno-long-calls
-G  num  -nocpp

i386 Options
-m486  -mno-486  -msoft-float  -msvr3-shlib  -mieee-fp
-mno-fp-ret-in-387

HPPA Options
-mpa-risc-1-0
-mpa-risc-1-1
-mlong-calls
-mdisable-fpregs
-mdisable-indexing
-mtrailing-colon

Intel 960 Options
-mcpu type
-mnumerics  -msoft-float
-mcode-align  -mno-code-align
-mleaf-procedures  -mno-leaf-procedures
-mtail-call  -mno-tail-call
-mcomplex-addr  -mno-complex-addr
-mclean-linkage  -mno-clean-linkage
-mic-compat  -mic2.0-compat  -mic3.0-compat
-masm-compat  -mintel-asm
-mstrict-align  -mno-strict-align
-mold-align  -mno-old-align

DEC Alpha Options
-mfp-regs  -mno-fp-regs  -mno-soft-float
-msoft-float

Clipper Options
-mc300 -mc400

System V Options
-G  -Qy  -Qn  -YP,paths  -Ym,dir

Code Generation Options
See section Options for Code Generation Conventions.
-fcall-saved-reg  -fcall-used-reg 
-ffixed-reg  -finhibit-size-directive 
-fno-common  -fno-ident
-fno-gnu-linker  -fpcc-struct-return  -fpic  -fPIC 
-freg-struct-return  -fshared-data  -fshort-enums
-fshort-double  -fvolatile  -fvolatile-global
-fverbose-asm

Go to the previous, next section.