From: Julian Seward Date: Mon, 31 Oct 2011 10:59:31 +0000 (+0000) Subject: Use normal setjmp/longjmp, not the __builtin_ ones, as LLVM pretty X-Git-Tag: svn/VALGRIND_3_8_0~594 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2daafda62da1f0ae777a6fc459cb7a44acbd9bc;p=thirdparty%2Fvalgrind.git Use normal setjmp/longjmp, not the __builtin_ ones, as LLVM pretty much treats the latter kind as no-ops. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12254 --- diff --git a/memcheck/tests/badjump2.c b/memcheck/tests/badjump2.c index 47a6829861..ad7329f63b 100644 --- a/memcheck/tests/badjump2.c +++ b/memcheck/tests/badjump2.c @@ -13,7 +13,7 @@ static jmp_buf myjmpbuf; static void SIGSEGV_handler(int signum) { - __builtin_longjmp(myjmpbuf, 1); + longjmp(myjmpbuf, 1); } int main(void) @@ -33,7 +33,7 @@ int main(void) res = sigaction( SIGSEGV, &sigsegv_new, &sigsegv_saved ); assert(res == 0); - if (__builtin_setjmp(myjmpbuf) == 0) { + if (setjmp(myjmpbuf) == 0) { // Jump to zero; will cause seg fault #if defined(__powerpc64__) unsigned long int fn[3];