From c37eee6b3db982afb8eb219e44592bd3f83ce2f7 Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Sat, 16 Mar 2019 22:43:53 +0100 Subject: [PATCH] ARM: Prevent setjmp/longjmp inlining. * lib/arm-mes-gcc/setjmp.c (longjmp): Prevent inlining. (setjmp): Prevent inlining. --- lib/arm-mes-gcc/setjmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/arm-mes-gcc/setjmp.c b/lib/arm-mes-gcc/setjmp.c index c0c96703..c9e8b591 100644 --- a/lib/arm-mes-gcc/setjmp.c +++ b/lib/arm-mes-gcc/setjmp.c @@ -21,9 +21,8 @@ #include #include -/* 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*