diff options
author | David 'Digit' Turner <digit@android.com> | 2012-10-18 13:10:51 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2012-10-18 18:28:01 +0200 |
commit | 0ea76db1ae4cc2335b7cd9554b14aca6437c5e21 (patch) | |
tree | d042499917319d612b8943744a350a1a6f93d6e7 /toolchains | |
parent | a099fc95d421df84e6e5a9fc029e49ece7efc2e2 (diff) | |
download | ndk-0ea76db1ae4cc2335b7cd9554b14aca6437c5e21.tar.gz |
Change default -mfpu type to 'vfpv3d16' instead of 'vfp'
'vfp' really corresponds to VFPv2, with 'vfpv3-d16' corresponding
to the mandated minimum FPU architecture for ARMv7-A and hence
armeabi-v7a.
Note that 'vfpv3-d16' adds a few instructions on top of 'vfp' which
relate to loading a small set of immediate values directly into
FPU registers (e.g. +1.0, -1.0, etc). Any code that was previously
generated with -mfpu=vfp will still work, and any code that targets
'vfpv3d16' will work on all armeabi-v7a capable devices.
For more information, see the documentation comments in
sources/android/cpu-features.c introduced in this patch:
https://android-review.googlesource.com/#/c/44920/
Change-Id: Ice0067a23c8e5dc7cec13cd07f18183164a67730
Diffstat (limited to 'toolchains')
-rw-r--r-- | toolchains/arm-linux-androideabi-4.4.3/setup.mk | 2 | ||||
-rw-r--r-- | toolchains/arm-linux-androideabi-4.6/setup.mk | 2 | ||||
-rw-r--r-- | toolchains/arm-linux-androideabi-4.7/setup.mk | 2 | ||||
-rw-r--r-- | toolchains/arm-linux-androideabi-clang3.1/setup.mk | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/toolchains/arm-linux-androideabi-4.4.3/setup.mk b/toolchains/arm-linux-androideabi-4.4.3/setup.mk index bd58c0483..80302e784 100644 --- a/toolchains/arm-linux-androideabi-4.4.3/setup.mk +++ b/toolchains/arm-linux-androideabi-4.4.3/setup.mk @@ -39,7 +39,7 @@ TARGET_C_INCLUDES := \ ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) TARGET_CFLAGS += -march=armv7-a \ -mfloat-abi=softfp \ - -mfpu=vfp + -mfpu=vfpv3-d16 TARGET_LDFLAGS += -march=armv7-a \ -Wl,--fix-cortex-a8 diff --git a/toolchains/arm-linux-androideabi-4.6/setup.mk b/toolchains/arm-linux-androideabi-4.6/setup.mk index 1fad30f87..6c9d516c5 100644 --- a/toolchains/arm-linux-androideabi-4.6/setup.mk +++ b/toolchains/arm-linux-androideabi-4.6/setup.mk @@ -39,7 +39,7 @@ TARGET_C_INCLUDES := \ ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) TARGET_CFLAGS += -march=armv7-a \ -mfloat-abi=softfp \ - -mfpu=vfp + -mfpu=vfpv3-d16 TARGET_LDFLAGS += -march=armv7-a \ -Wl,--fix-cortex-a8 diff --git a/toolchains/arm-linux-androideabi-4.7/setup.mk b/toolchains/arm-linux-androideabi-4.7/setup.mk index 19cc1459c..bd756afb9 100644 --- a/toolchains/arm-linux-androideabi-4.7/setup.mk +++ b/toolchains/arm-linux-androideabi-4.7/setup.mk @@ -39,7 +39,7 @@ TARGET_C_INCLUDES := \ ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) TARGET_CFLAGS += -march=armv7-a \ -mfloat-abi=softfp \ - -mfpu=vfp + -mfpu=vfpv3-d16 TARGET_LDFLAGS += -march=armv7-a \ -Wl,--fix-cortex-a8 diff --git a/toolchains/arm-linux-androideabi-clang3.1/setup.mk b/toolchains/arm-linux-androideabi-clang3.1/setup.mk index dcb9c2c0e..558ffd311 100644 --- a/toolchains/arm-linux-androideabi-clang3.1/setup.mk +++ b/toolchains/arm-linux-androideabi-clang3.1/setup.mk @@ -68,7 +68,7 @@ ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) TARGET_CFLAGS += -target $(LLVM_TRIPLE) \ -march=armv7-a \ -mfloat-abi=softfp \ - -mfpu=vfp + -mfpu=vfpv3-d16 TARGET_LDFLAGS += -target $(LLVM_TRIPLE) \ -Wl,--fix-cortex-a8 |