ARM: Prevent setjmp/longjmp inlining.
* lib/arm-mes-gcc/setjmp.c (longjmp): Prevent inlining. (setjmp): Prevent inlining.
This commit is contained in:
parent
3767477f5a
commit
c37eee6b3d
|
@ -21,9 +21,8 @@
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
/* This assumes that both longjmp and setjmp either have frames, or both have no frames. */
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
__attribute__ ((noinline))
|
||||||
longjmp (jmp_buf env, int val)
|
longjmp (jmp_buf env, int val)
|
||||||
{
|
{
|
||||||
// *INDENT-OFF*
|
// *INDENT-OFF*
|
||||||
|
@ -44,6 +43,7 @@ longjmp (jmp_buf env, int val)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
__attribute__ ((noinline))
|
||||||
setjmp (jmp_buf env)
|
setjmp (jmp_buf env)
|
||||||
{
|
{
|
||||||
// *INDENT-OFF*
|
// *INDENT-OFF*
|
||||||
|
|
Loading…
Reference in New Issue