aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-05-18 22:52:25 -0700
committerDan Willemsen <dwillemsen@google.com>2016-05-18 22:52:25 -0700
commitc264c16638aa51caacd1b0d203a536b8b35491c0 (patch)
treebff56526efc25e613e7f81ab6e594844de249912 /cc
parent03a708631919145f403a89352e36785eded6c73c (diff)
downloadbuild_soong-c264c16638aa51caacd1b0d203a536b8b35491c0.tar.gz
build_soong-c264c16638aa51caacd1b0d203a536b8b35491c0.tar.bz2
build_soong-c264c16638aa51caacd1b0d203a536b8b35491c0.zip
Move -msoft-float to ToolchainCflags
-msoft-float is equivalent to -mfloat-abi=soft, which means we need to make sure the order is correct if we also specify -mfloat-abi=softfp. Since the Neon support (with -mfloat-abi=softfp) is in the cpu-specific ToolchainCflags, move the generic definition into ToolchainCflags as well. This wasn't actually causing problems when compiling, since the normal toolchain.Cflags is before toolchain.ToolchainCflags, but the makevars code accidentally reversed this. That will be fixed as well, but this will protect against similar problems in the future. Change-Id: If6f37c845210105f84769bab45fde5d7fdc2fe09
Diffstat (limited to 'cc')
-rw-r--r--cc/arm_device.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/arm_device.go b/cc/arm_device.go
index d5835909..766eea61 100644
--- a/cc/arm_device.go
+++ b/cc/arm_device.go
@@ -24,12 +24,12 @@ import (
var (
armToolchainCflags = []string{
"-mthumb-interwork",
+ "-msoft-float",
}
armCflags = []string{
"-fno-exceptions", // from build/core/combo/select.mk
"-Wno-multichar", // from build/core/combo/select.mk
- "-msoft-float",
"-ffunction-sections",
"-fdata-sections",
"-funwind-tables",