FLAIM change. Updated makefile to use various gcc optimization flags when doing a release build.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@799 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -901,6 +901,31 @@ ifdef unix_target
|
||||
libr = ar
|
||||
endif
|
||||
|
||||
gcc_optimization_flags = \
|
||||
-O \
|
||||
-foptimize-sibling-calls \
|
||||
-fstrength-reduce -fcse-follow-jumps \
|
||||
-fcse-skip-blocks \
|
||||
-frerun-cse-after-loop \
|
||||
-frerun-loop-opt \
|
||||
-fgcse \
|
||||
-fgcse-lm \
|
||||
-fgcse-sm \
|
||||
-fdelete-null-pointer-checks \
|
||||
-fexpensive-optimizations \
|
||||
-fregmove \
|
||||
-fsched-interblock \
|
||||
-fsched-spec \
|
||||
-fcaller-saves \
|
||||
-fpeephole2 \
|
||||
-freorder-blocks \
|
||||
-freorder-functions \
|
||||
-falign-functions \
|
||||
-falign-jumps \
|
||||
-falign-loops \
|
||||
-falign-labels \
|
||||
-fcrossjumping
|
||||
|
||||
ifeq ($(usenativecc),yes)
|
||||
ifeq ($(target_os_family),solaris)
|
||||
compiler = CC
|
||||
@@ -945,30 +970,7 @@ ifdef unix_target
|
||||
ccdefs += N_PLAT_UNIX _LARGEFILE64_SOURCE _FILE_OFFSET_BITS=64
|
||||
|
||||
ifeq ($(target_build_type),release)
|
||||
ccflags += \
|
||||
-O \
|
||||
-foptimize-sibling-calls \
|
||||
-fstrength-reduce -fcse-follow-jumps \
|
||||
-fcse-skip-blocks \
|
||||
-frerun-cse-after-loop \
|
||||
-frerun-loop-opt \
|
||||
-fgcse \
|
||||
-fgcse-lm \
|
||||
-fgcse-sm \
|
||||
-fdelete-null-pointer-checks \
|
||||
-fexpensive-optimizations \
|
||||
-fregmove \
|
||||
-fsched-interblock \
|
||||
-fsched-spec \
|
||||
-fcaller-saves \
|
||||
-fpeephole2 \
|
||||
-freorder-blocks \
|
||||
-freorder-functions \
|
||||
-falign-functions \
|
||||
-falign-jumps \
|
||||
-falign-loops \
|
||||
-falign-labels \
|
||||
-fcrossjumping
|
||||
ccflags += $(gcc_optimization_flags)
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -1032,6 +1034,10 @@ ifdef unix_target
|
||||
|
||||
ifeq ($(target_os_family),osx)
|
||||
ccdefs += OSX
|
||||
|
||||
ifeq ($(target_build_type),release)
|
||||
ccflags += $(gcc_optimization_flags)
|
||||
endif
|
||||
endif
|
||||
|
||||
ccdefs += _REENTRANT
|
||||
|
||||
Reference in New Issue
Block a user