5 OPTIMIZE
+= -funit-at-a-time
7 OPTIMIZE
:= -Os
-DNDEBUG
-Wuninitialized
13 ifeq ($(HAVE_WIN32
),y
)
14 # WINE works best with stabs debug symbols
21 # Enable fast floating point math. XCSoar does not rely on strict
22 # IEEE/ISO semantics, for example it is not interested in "errno" or
23 # the difference between -0 and +0. This allows using non-conforming
24 # vector units on some platforms, e.g. ARM NEON.
25 OPTIMIZE
+= -ffast-math
27 ifeq ($(CLANG
)$(DEBUG
),nn
)
28 # Enable gcc auto-vectorisation on some architectures (e.g. ARM NEON).
29 # This requires -ffast-math, because some vector units don't conform
30 # stricly with IEEE/ISO (see above).
31 OPTIMIZE
+= -ftree-vectorize
33 OPTIMIZE
+= -funsafe-loop-optimizations
37 OPTIMIZE
+= -flto
-fwhole-program
39 # workaround for gcc 4.5.0 bug, see
40 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43898
41 OPTIMIZE
:= $(filter-out -ggdb
-gstabs
,$(OPTIMIZE
))
45 # generate LLVM bitcode
46 OPTIMIZE
+= -emit-llvm