ARM: 8989/1: use .fpu assembler directives instead of assembler arguments
authorStefan Agner <stefan@agner.ch>
Thu, 9 Jul 2020 10:17:36 +0000 (11:17 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 21 Jul 2020 15:33:37 +0000 (16:33 +0100)
commita6c30873ee4a5cc0549c1973668156381ab2c1c4
treeb80ea193b90a22732eeab45e8c7b9988f146a52b
parent2631781213eed013c4a3080e5195d95cf1685d7f
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>
arch/arm/vfp/Makefile
arch/arm/vfp/vfphw.S