ARM: Special-case setjmp struct for gcc with mes libc.

* include/setjmp.h (__jmp_buf): Special-case setjmp struct for gcc with mes
libc.
This commit is contained in:
Danny Milosavljevic 2020-11-15 23:00:25 +01:00 committed by Jan (janneke) Nieuwenhuizen
parent 13b69f4b9b
commit a5f30ee27b
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -27,12 +27,22 @@
#else // ! SYSTEM_LIBC
#if __arm__
#if __GNUC__
#warning "It is not supported to use mes' setjmp implementation together with GCC. Continuing with best-effort implementation."
typedef struct
{
long __sp;
long __lr;
long __registers[8]; /* Note: Keep in sync with lib/arm-mes-gcc/setjmp.c */
} __jmp_buf;
#else
typedef struct
{
long __fp;
long __lr;
long __sp;
} __jmp_buf;
#endif
#else
typedef struct
{