https://gcc.gnu.org/g:44f4aeb6ed1ddcd715f05db444f8441976689096

commit 44f4aeb6ed1ddcd715f05db444f8441976689096
Author: Alexandre Oliva <[email protected]>
Date:   Fri Mar 13 00:30:03 2026 -0300

    testsuite: vxworks: gcov-32 misuses sigjmp_buf with setjmp
    
    The test (presumably by mistake) calls setjmp with a sigjmp_buf.
    
    Because of the sigsetjmp requirement, I'm replacing the setjmp call
    with sigsetjmp, though the comments in the test explicitly mention
    setjmp.
    
    
    for  gcc/testsuite/ChangeLog
    
            * gcc.misc-tests/gcov-32.c: Replace mismatched setjmp call
            with sigsetjmp.

Diff:
---
 gcc/testsuite/gcc.misc-tests/gcov-32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.misc-tests/gcov-32.c 
b/gcc/testsuite/gcc.misc-tests/gcov-32.c
index cb8da01b7d5b..1265cedbbc2f 100644
--- a/gcc/testsuite/gcc.misc-tests/gcov-32.c
+++ b/gcc/testsuite/gcc.misc-tests/gcov-32.c
@@ -19,7 +19,7 @@ debug_after_labels (int *itr)
   for (; *itr; ++itr)
     {
       sfun fn = getfn (*itr);
-      if (setjmp (jmpbuf) == 0)
+      if (sigsetjmp (jmpbuf, 0) == 0)
        fn ();
     }
 }

Reply via email to