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
_______________________________________________
kvmarm mailing list
[email protected]
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm