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 04c058fe5e
commit 80e08cf1ef
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 10 additions and 0 deletions

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
{