aboutsummaryrefslogtreecommitdiffstats
path: root/cc/config/arm_device.go
diff options
context:
space:
mode:
authorIsaac Chen <ycchen@google.com>2017-10-05 18:28:57 +0800
committerIsaac Chen <ycchen@google.com>2017-11-08 04:17:35 +0000
commit2bce8edf34120990e0838ca4122b6dcfaa879ab4 (patch)
tree01e79397d8e9fcaca757ddcdea8c128db689442b /cc/config/arm_device.go
parentd293e65c820805bd526d3cf84ab13df0d85c42da (diff)
downloadbuild_soong-2bce8edf34120990e0838ca4122b6dcfaa879ab4.tar.gz
build_soong-2bce8edf34120990e0838ca4122b6dcfaa879ab4.tar.bz2
build_soong-2bce8edf34120990e0838ca4122b6dcfaa879ab4.zip
Generic 32-bit armv8 built as generic armv7 fix
When the following lines are specified in the BoardConfig.mk TARGET_2ND_ARCH_VARIANT := armv8-a TARGET_2ND_CPU_VARIANT := generic The resulted binaries won't be built using 32-bit armv8-a integer division instructions. Instead, division routines are used because the build system will set a compiler option "-march=armv7-a", and hence overwiting the previous "-march=armv8-a", when TARGET_2ND_CPU_VARIANT is set to generic (or unset). Bug: 67446726 Test: lunch aosp_arm64; make -j; emulator # boot to home screen Also verify -march=armv7-a is not specified in the compiler command line and the resulted binary actually uses integer division instructions. Change-Id: I430687aa5a658d2ec9f325a66d849b4c8898c7d5
Diffstat (limited to 'cc/config/arm_device.go')
-rw-r--r--cc/config/arm_device.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cc/config/arm_device.go b/cc/config/arm_device.go
index 2c439f06..67039697 100644
--- a/cc/config/arm_device.go
+++ b/cc/config/arm_device.go
@@ -77,6 +77,7 @@ var (
"-mfpu=vfpv3-d16",
},
"armv7-a-neon": []string{
+ "-march=armv7-a",
"-mfloat-abi=softfp",
"-mfpu=neon",
},
@@ -88,9 +89,6 @@ var (
}
armCpuVariantCflags = map[string][]string{
- "": []string{
- "-march=armv7-a",
- },
"cortex-a7": []string{
"-mcpu=cortex-a7",
"-mfpu=neon-vfpv4",