use sigjmp_buf for analyzer sigsetjmp tests
authorAlexandre Oliva <oliva@adacore.com>
Thu, 14 Jan 2021 19:12:20 +0000 (16:12 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 14 Jan 2021 19:12:20 +0000 (16:12 -0300)
commit6541fcadc8622e7b4bf2e90501b51df329e51924
treecae0df460ebc5ed1595339ea01dbbaa1e66b3a70
parent088e46b8d4d81e429f78ca75b47a179f489be16d
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.
gcc/testsuite/gcc.dg/analyzer/sigsetjmp-5.c
gcc/testsuite/gcc.dg/analyzer/sigsetjmp-6.c