]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Use sigsetjmp in gcc.misc-tests/gcov-31.c
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 22 Apr 2025 09:16:09 +0000 (11:16 +0200)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 22 Apr 2025 09:16:09 +0000 (11:16 +0200)
The gcc.misc-tests/gcov-31.c test FAILs on Solaris and Darwin:

FAIL: gcc.misc-tests/gcov-31.c (test for excess errors)

Excess errors:
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.misc-tests/gcov-31.c:23:5:
error: implicit declaration of function '__sigsetjmp'; did you mean
'sigsetjmp'? [-Wimplicit-function-declaration]

__sigsetjmp is a Linux/glibc implementation detail.  Other tests just
use sigsetjmp directly, so this patch follows suit.

Tested on i386-pc-solaris2.11, sparc-sun-solaris2.11,
x86_64-pc-linux-gnu, and x86_64-apple-darwin24.4.0.

2025-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

gcc/testsuite:
* gcc.misc-tests/gcov-31.c (run_pending_traps): Use sigsetjmp
instead of __sigsetjmp.

gcc/testsuite/gcc.misc-tests/gcov-31.c

index 6c42d345abf12dd73d33718f52e70aa4d490aa51..5f060e980261ffe5b6dfe09992ab5a6ec2230954 100644 (file)
@@ -20,7 +20,7 @@ run_pending_traps ()
     jump_to_top_level (2);
 
   for (sig = 1; sig < (64 + 1) ; sig++)
-    __sigsetjmp ((return_catch), 0);
+    sigsetjmp ((return_catch), 0);
 }
 
 /* Distilled from alsalib-1.2.11 pcm/pcm_route.c.  */