[PATCH] arm64: Work around broken GCC 4.9 handling of "S" constraint
Catalin Marinas
catalin.marinas at arm.com
Thu Dec 17 09:13:23 EST 2020
On Thu, 17 Dec 2020 11:11:35 +0000, Marc Zyngier wrote:
> GCC 4.9 seems to have a problem with the "S" asm constraint
> when the symbol lives in the same compilation unit, and pretends
> the constraint is impossible:
>
> $ cat x.c
> void *foo(void)
> {
> static int x;
> int *addr;
> asm("adrp %0, %1" : "=r" (addr) : "S" (&x));
> return addr;
> }
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: Work around broken GCC 4.9 handling of "S" constraint
https://git.kernel.org/arm64/c/9fd339a45be5
--
Catalin
More information about the linux-arm-kernel
mailing list