]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8989/1: use .fpu assembler directives instead of assembler arguments
authorStefan Agner <stefan@agner.ch>
Wed, 29 Jun 2022 18:02:17 +0000 (11:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Jul 2022 14:28:50 +0000 (16:28 +0200)
commita7c45ba5d719637f1ff269e843b1dccd94dda019
treee380ecd74a38ccb0253df09fd1ee0f7a61bcca3c
parent2578ff289fd5f573f2a50dfb714acdcc98249f97
ARM: 8989/1: use .fpu assembler directives instead of assembler arguments

commit 3aed852a1a917841dd5378ed45740b34f0e2eb5c upstream

Explicit FPU selection has been introduced in commit 2db7f377222e
("[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>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/vfp/Makefile
arch/arm/vfp/vfphw.S