On Wed, Jan 22, 2020 at 02:35:13PM -0500, David Malcolm wrote:
> PR analyzer/93316 reports various testsuite failures where I
> accidentally relied on properties of x86_64-pc-linux-gnu.
> 
> The following patch fixes them on sparc-sun-solaris2.11 (gcc211 in the
> GCC compile farm), and, I hope, the other configurations showing
> failures.
> 
> There may still be other failures for pattern-test-2.c, which I'm
> tracking separately as PR analyzer/93291.
> 
> Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu;
> tested on stage 1 on sparc-sun-solaris2.11.
> 
> gcc/analyzer/ChangeLog:
>       PR analyzer/93316
>       * analyzer.cc (is_setjmp_call_p): Check for "setjmp" as well as
>       "_setjmp".

Please see calls.c (special_function_p), you should treat certainly
also sigsetjmp as a setjmp call, and similarly to special_function_p,
skip over _ or __ prefixes before the setjmp or sigsetjmp name.
Similarly for longjmp/siglongjmp.

        Jakub

Reply via email to