use sigjmp_buf for analyzer sigsetjmp tests

The sigsetjmp analyzer tests use jmp_buf in sigsetjmp and siglongjmp
calls.  Not every system that supports sigsetjmp uses the same data
structure for setjmp and sigsetjmp, which results in type mismatches.

This patch changes the tests to use sigjmp_buf, that is the
POSIX-specific type for use with sigsetjmp and siglongjmp.


for  gcc/testsuite/ChnageLog

	* gcc.dg/analyzer/sigsetjmp-5.c: Use sigjmp_buf.
	* gcc.dg/analyzer/sigsetjmp-6.c: Likewise.
This commit is contained in:
Alexandre Oliva 2021-01-14 16:12:20 -03:00 committed by Alexandre Oliva
parent 088e46b8d4
commit 6541fcadc8
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
#include <stddef.h>
#include "analyzer-decls.h"
static jmp_buf env;
static sigjmp_buf env;
static void inner (void)
{

View File

@ -6,7 +6,7 @@
extern int foo (int) __attribute__ ((__pure__));
static jmp_buf env;
static sigjmp_buf env;
static void inner (void)
{