ARM: Prevent setjmp/longjmp inlining.

* lib/arm-mes-gcc/setjmp.c (longjmp): Prevent inlining.
(setjmp): Prevent inlining.
This commit is contained in:
Danny Milosavljevic 2019-03-16 22:43:53 +01:00 committed by Jan Nieuwenhuizen
parent 3767477f5a
commit c37eee6b3d
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 2 additions and 2 deletions

View File

@ -21,9 +21,8 @@
#include <setjmp.h>
#include <stdlib.h>
/* This assumes that both longjmp and setjmp either have frames, or both have no frames. */
void
__attribute__ ((noinline))
longjmp (jmp_buf env, int val)
{
// *INDENT-OFF*
@ -44,6 +43,7 @@ longjmp (jmp_buf env, int val)
}
int
__attribute__ ((noinline))
setjmp (jmp_buf env)
{
// *INDENT-OFF*