analyzer: don't use <setjmp.h> in tests [PR97394]
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 13 Oct 2020 19:56:45 +0000 (15:56 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 14 Oct 2020 20:36:25 +0000 (16:36 -0400)
commit974e3975c5bd14ee8817f892532d1e55492227df
tree09c9c38cfeb45c73d17e762b5f3e1d6afadf315e
parent270c5a982ccb4ef83bd9ad37d39cf47461acb55a
analyzer: don't use <setjmp.h> in tests [PR97394]

PR analyzer/97394 reports issues with analyzer setjmp results
when testing against MUSL.  This patch fixes up gcc.dg/analyzer
so that it doesn't use <setjmp.h>.

gcc/testsuite/ChangeLog:
PR analyzer/97394
* gcc.dg/analyzer/setjmp-pr93378.c: Use test-setjmp.h rather than
<setjmp.h>.
* gcc.dg/analyzer/sigsetjmp-5.c: Likewise.
* gcc.dg/analyzer/sigsetjmp-6.c: Likewise.
* gcc.dg/analyzer/test-setjmp.h: Don't include <setjmp.h>.
Provide decls of jmp_buf, sigjmp_buf, setjmp, sigsetjmp,
longjmp, and siglongjmp.
gcc/testsuite/gcc.dg/analyzer/setjmp-pr93378.c
gcc/testsuite/gcc.dg/analyzer/sigsetjmp-5.c
gcc/testsuite/gcc.dg/analyzer/sigsetjmp-6.c
gcc/testsuite/gcc.dg/analyzer/test-setjmp.h