Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a83b7695 authored by Jing Yu's avatar Jing Yu
Browse files

Remove global inline options.

The purpose of removing global inline options is to give
compiler the opportunity to do inline optimizations and inline
tunings for Android native codes.

By removing these global inline options now, the size of
almost all native libraries are reduced. And there is no
noticable performance degradation on webkit, gcstone and
skia benchmarks.

Change-Id: I31e71f51e4f29fa6286fddb89e9eab227581c7b3
parent 085ff6a8
Loading
Loading
Loading
Loading
+2 −6
Original line number Original line Diff line number Diff line
@@ -60,8 +60,7 @@ TARGET_NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined
TARGET_arm_CFLAGS :=    -O2 \
TARGET_arm_CFLAGS :=    -O2 \
                        -fomit-frame-pointer \
                        -fomit-frame-pointer \
                        -fstrict-aliasing    \
                        -fstrict-aliasing    \
                        -funswitch-loops     \
                        -funswitch-loops
                        -finline-limit=300


# Modules can choose to compile some source as thumb. As
# Modules can choose to compile some source as thumb. As
# non-thumb enabled targets are supported, this is treated
# non-thumb enabled targets are supported, this is treated
@@ -71,8 +70,7 @@ ifeq ($(ARCH_ARM_HAVE_THUMB_SUPPORT),true)
TARGET_thumb_CFLAGS :=  -mthumb \
TARGET_thumb_CFLAGS :=  -mthumb \
                        -Os \
                        -Os \
                        -fomit-frame-pointer \
                        -fomit-frame-pointer \
                        -fno-strict-aliasing \
                        -fno-strict-aliasing
                        -finline-limit=64
else
else
TARGET_thumb_CFLAGS := $(TARGET_arm_CFLAGS)
TARGET_thumb_CFLAGS := $(TARGET_arm_CFLAGS)
endif
endif
@@ -143,8 +141,6 @@ TARGET_RELEASE_CFLAGS := \
			-DNDEBUG \
			-DNDEBUG \
			-g \
			-g \
			-Wstrict-aliasing=2 \
			-Wstrict-aliasing=2 \
			-finline-functions \
			-fno-inline-functions-called-once \
			-fgcse-after-reload \
			-fgcse-after-reload \
			-frerun-cse-after-loop \
			-frerun-cse-after-loop \
			-frename-registers
			-frename-registers