RE: [PATCH v2] MIPS: Only use current_stack_pointer on GCC

From: David Laight
Date: Wed Mar 09 2022 - 17:45:00 EST


From: Kees Cook
> Sent: 09 March 2022 22:10
>
> Unfortunately, Clang did not have support for "sp" as a global register
> definition, and was crashing after the addition of current_stack_pointer.
> This has been fixed in Clang 15, but earlier Clang versions need to
^^ 14
> avoid this code, so add a versioned test and revert back to the
> open-coded asm instances. Fixes Clang build error:
>
> fatal error: error in backend: Invalid register name global variable

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)