[PATCH] Test for sigsetjmp support in analyzer tests requiring that feature.

Sandra Loosemore sandra@codesourcery.com
Thu Apr 2 20:45:55 GMT 2020


On 4/2/20 4:09 AM, Tobias Burnus wrote:
> Interestingly, only those two testcases use the effective-target check:
> gcc.dg/analyzer/sigsetjmp-5.c, gcc.dg/analyzer/sigsetjmp-6.c
> 
> Regarding the link test: No header file is included – it just
> defines the function ("extern char $funcname();") and calls it.

This is the same way configure scripts test for the existence of a 
library function; the test case is just an arbitrary reference to the 
named function that will generate an undefined symbol error from the 
linker if the standard libraries don't provide a definition.

> The check fails as "sigsetjmp" does not exist in glibc –
> the symbol is "__sigsetjmp" in glibc.

I've checked in this followup patch to make it also test for the 
presence of __sigsetjmp, and verified that the test case now runs and 
passes on x86_64_linux-gnu.

-Sandra
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sigsetjmp-2.patch
Type: text/x-patch
Size: 1538 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200402/b6525c56/attachment.bin>


More information about the Gcc-patches mailing list