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:
parent
13b69f4b9b
commit
a5f30ee27b
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue