]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
ppc{32,64}-linux: mark VG_MINIMAL_LONGJMP as noreturn, since it is,
authorJulian Seward <jseward@acm.org>
Mon, 9 May 2011 09:15:28 +0000 (09:15 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 9 May 2011 09:15:28 +0000 (09:15 +0000)
and not doing so leads to compiler warnings for functions that tail
call this one, which themselves are marked "attribute noreturn".

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11732

include/pub_tool_libcsetjmp.h

index 3c0f15cd2030aae8462c143a0109022cc14c89fd..aa484cf98e00a82d40c7f8db67b86893201466ff 100644 (file)
 
 #define VG_MINIMAL_JMP_BUF(_name)        UInt _name [32+1+1]
 Int  VG_MINIMAL_SETJMP(VG_MINIMAL_JMP_BUF(_env));
+__attribute__((noreturn))
 void VG_MINIMAL_LONGJMP(VG_MINIMAL_JMP_BUF(_env));
 
 #elif defined(VGP_ppc64_linux)
 
 #define VG_MINIMAL_JMP_BUF(_name)        ULong _name [32+1+1]
 Int  VG_MINIMAL_SETJMP(VG_MINIMAL_JMP_BUF(_env));
+__attribute__((noreturn))
 void VG_MINIMAL_LONGJMP(VG_MINIMAL_JMP_BUF(_env));
 
 #else