summaryrefslogtreecommitdiff
path: root/arch/arm/vfp/Makefile
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2020-07-09 11:17:36 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2020-07-21 16:33:37 +0100
commita6c30873ee4a5cc0549c1973668156381ab2c1c4 (patch)
treeb80ea193b90a22732eeab45e8c7b9988f146a52b /arch/arm/vfp/Makefile
parent2631781213eed013c4a3080e5195d95cf1685d7f (diff)
ARM: 8989/1: use .fpu assembler directives instead of assembler arguments
Explicit FPU selection has been introduced in commit 1a6be26d5b1a ("[ARM] Enable VFP to be built when non-VFP capable CPUs are selected") to make use of assembler mnemonics for VFP instructions. However, clang currently does not support passing assembler flags like this and errors out with: clang-10: error: the clang compiler does not support '-Wa,-mfpu=softvfp+vfp' Make use of the .fpu assembler directives to select the floating point hardware selectively. Also use the new unified assembler language mnemonics. This allows to build these procedures with Clang. Link: https://github.com/ClangBuiltLinux/linux/issues/762 Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/vfp/Makefile')
-rw-r--r--arch/arm/vfp/Makefile2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/vfp/Makefile b/arch/arm/vfp/Makefile
index 9975b63ac3b0..749901a72d6d 100644
--- a/arch/arm/vfp/Makefile
+++ b/arch/arm/vfp/Makefile
@@ -8,6 +8,4 @@
# ccflags-y := -DDEBUG
# asflags-y := -DDEBUG
-KBUILD_AFLAGS :=$(KBUILD_AFLAGS:-msoft-float=-Wa,-mfpu=softvfp+vfp -mfloat-abi=soft)
-
obj-y += vfpmodule.o entry.o vfphw.o vfpsingle.o vfpdouble.o