[openib-general] respect CFLAGS in OSM
Eitan Zahavi
eitan at mellanox.co.il
Mon Jan 23 06:21:24 PST 2006
>
> On Mon, 2006-01-23 at 09:10, Eitan Zahavi wrote:
> > >
> > > Actually I'm not sure about this. I too see both but can't tell
which
> > > was honored and didn't see the specific text in gcc to indicate
the
> > > precedence here. Is it first option or last option of the same or
> > > something else ?
> > [EZ] This is exactly why I have added the traces from running gcc
with
> > the two options.
> > If you look just below you will see the verbose report from cc1
showing
> > that the last option wins by showing the exact list of optimization
> > options used by the compiler. I have tested that on multiple gcc
> > versions. (The command line itself is reported when you run gcc -v.
Then
> > you need to remove the -quite flag to get the correct level of
> > verbosity. )
>
> Got it. It's all the extra -f options that are enabled by -O2.
>
> I will revert the patch to the OSM makefiles.
[EZ] Let's wait for Pete's response.
>
> -- Hal
>
> > > > >
> > > > >
> >
swlab25:/home/eitan/SW/work/examples>/usr/libexec/gcc/i386-redhat-linux/
> > > > > 4.0.0/cc1 getHostName.c getHostName.c -auxbase getHostName -O0
-O2
> > > > > -version -o /tmp/ccet3OkS.s
> > > > > GNU C version 4.0.0 20050519 (Red Hat 4.0.0-8)
(i386-redhat-linux)
> > > > > compiled by GNU C version 4.0.0 20050519 (Red Hat
> > 4.0.0-8).
> > > > > GGC heuristics: --param ggc-min-expand=99 --param
> > > > > ggc-min-heapsize=129317
> > > > > options passed: -auxbase -O0 -O2
> > > > > options enabled: -falign-loops -fargument-alias
> > -fbranch-count-reg
> > > > > -fcaller-saves -fcommon -fcprop-registers -fcrossjumping
> > > > > -fcse-follow-jumps -fcse-skip-blocks -fdefer-pop
> > > > > -fdelete-null-pointer-checks -feliminate-unused-debug-types
> > > > > -fexpensive-optimizations -fforce-mem -ffunction-cse -fgcse
> > -fgcse-lm
> > > > > -fguess-branch-probability -fident -fif-conversion
> > -fif-conversion2
> > > > > -fivopts -fkeep-static-consts -fleading-underscore
> > -floop-optimize
> > > > > -floop-optimize2 -fmath-errno -fmerge-constants
> > > > > -foptimize-register-move
> > > > > -foptimize-sibling-calls -fpcc-struct-return -fpeephole
> > -fpeephole2
> > > > > -fregmove -freorder-blocks -freorder-functions
> > -frerun-cse-after-loop
> > > > > -frerun-loop-opt -fsched-interblock -fsched-spec
> > > > > -fsched-stalled-insns-dep
> > > > > -fsplit-ivs-in-unroller -fstrength-reduce -fstrict-aliasing
> > > > > -fthread-jumps
> > > > > -ftrapping-math -ftree-ccp -ftree-ch -ftree-copyrename
-ftree-dce
> > > > > -ftree-dominator-opts -ftree-dse -ftree-fre -ftree-loop-im
> > > > > -ftree-loop-ivcanon -ftree-loop-optimize -ftree-lrs
-ftree-pre
> > > > > -ftree-sra
> > > > > -ftree-ter -funit-at-a-time -fvar-tracking
> > -fzero-initialized-in-bss
> > > > > -m80387 -mhard-float -mno-soft-float -mieee-fp
-mfp-ret-in-387
> > > > > -mno-red-zone -mtls-direct-seg-refs -mtune=i386 -march=i386
> > > > >
> > > > >
> >
swlab25:/home/eitan/SW/work/examples>/usr/libexec/gcc/i386-redhat-linux/
> > > > > 4.0.0/cc1 getHostName.c getHostName.c -auxbase getHostName -O2
-O0
> > > > > -version -o /tmp/ccet3OkS.s
> > > > > GNU C version 4.0.0 20050519 (Red Hat 4.0.0-8)
(i386-redhat-linux)
> > > > > compiled by GNU C version 4.0.0 20050519 (Red Hat
> > 4.0.0-8).
> > > > > GGC heuristics: --param ggc-min-expand=99 --param
> > > > > ggc-min-heapsize=129317
> > > > > options passed: -auxbase -O2 -O0
> > > > > options enabled: -falign-loops -fargument-alias
> > -fbranch-count-reg
> > > > > -fcommon -feliminate-unused-debug-types -ffunction-cse
-fgcse-lm
> > > > > -fident
> > > > > -fivopts -fkeep-static-consts -fleading-underscore
> > -floop-optimize2
> > > > > -fmath-errno -fpcc-struct-return -fpeephole
-fsched-interblock
> > > > > -fsched-spec -fsched-stalled-insns-dep
-fsplit-ivs-in-unroller
> > > > > -ftrapping-math -ftree-loop-im -ftree-loop-ivcanon
> > -ftree-loop-optimize
> > > > > -funit-at-a-time -fvar-tracking -fzero-initialized-in-bss
-m80387
> > > > > -mhard-float -mno-soft-float -mieee-fp -mfp-ret-in-387
> > -mno-red-zone
> > > > > -mtls-direct-seg-refs -mtune=i386 -march=i386
> > > > >
>
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
>
> To unsubscribe, please visit
http://openib.org/mailman/listinfo/openib-general
More information about the general
mailing list