gcc optimization option flags

M R Swami Reddy MR.Swami.Reddy@nsc.com
Fri May 8 12:57:00 GMT 2009


OH!! Btw, which version of gcc are you using?
I used gcc-4.1.1/gcc-4.2.1 and gcc-4.4.0 also..but no luck.

>> But -fverbose-asm and -save-temps doesn't help to list the flags.
> 
> For me it provides:
> 
> # options enabled:  -falign-loops -fargument-alias
> # -fasynchronous-unwind-tables -fauto-inc-dec -fbranch-count-reg
> # -fcaller-saves -fcommon -fcprop-registers -fcrossjumping
> # -fcse-follow-jumps -fdefer-pop -fdelete-null-pointer-checks
> # -fearly-inlining -feliminate-unused-debug-types -fexpensive-optimizations
> # -fforward-propagate -ffunction-cse -fgcse -fgcse-lm
> # -fguess-branch-probability -fident -fif-conversion -fif-conversion2
> # -finline-functions-called-once -finline-small-functions -fipa-pure-const
> # -fipa-reference -fivopts -fkeep-static-consts -fleading-underscore
> # -fmath-errno -fmerge-constants -fmerge-debug-strings
> # -fmove-loop-invariants -fomit-frame-pointer -foptimize-register-move
> # -foptimize-sibling-calls -fpeephole -fpeephole2 -freg-struct-return
> # -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop
> # -fsched-interblock -fsched-spec -fsched-stalled-insns-dep
> # -fschedule-insns2 -fsigned-zeros -fsplit-ivs-in-unroller
> # -fsplit-wide-types -fstrict-aliasing -fstrict-overflow -fthread-jumps
> # -ftoplevel-reorder -ftrapping-math -ftree-ccp -ftree-ch -ftree-copy-prop
> # -ftree-copyrename -ftree-cselim -ftree-dce -ftree-dominator-opts
> # -ftree-dse -ftree-fre -ftree-loop-im -ftree-loop-ivcanon
> # -ftree-loop-optimize -ftree-parallelize-loops= -ftree-pre -ftree-reassoc
> # -ftree-salias -ftree-scev-cprop -ftree-sink -ftree-sra -ftree-store-ccp
> # -ftree-ter -ftree-vect-loop-version -ftree-vrp -funit-at-a-time
> # -funwind-tables -fvect-cost-model -fverbose-asm -fzero-initialized-in-bss
> # -m128bit-long-double -m64 -m80387 -maccumulate-outgoing-args
> # -malign-stringops -mfancy-math-387 -mfp-ret-in-387 -mfused-madd -mglibc
> # -mieee-fp -mmmx -mno-sse4 -mpush-args -mred-zone -msse -msse2
> # -mtls-direct-seg-refs
> 
> Andrew.
> 
> 
> 




More information about the Gcc-help mailing list