[gcc r11-3824] tree-optimization/97357: Fix testcase

Christophe Lyon clyon@gcc.gnu.org
Mon Oct 12 14:09:24 GMT 2020


https://gcc.gnu.org/g:f10f11eb63b0ed082674d9a589e67230aa49efb5

commit r11-3824-gf10f11eb63b0ed082674d9a589e67230aa49efb5
Author: Christophe Lyon <christophe.lyon@linaro.org>
Date:   Mon Oct 12 14:04:06 2020 +0000

    tree-optimization/97357: Fix testcase
    
    Calling _setjmp causing a warning when targeting newlib.
    
    2020-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
    
            gcc/testsuite/
            PR tree-optimization/97357
            * gcc.dg/pr97357.c: Call setjmp instead of _setjmp.

Diff:
---
 gcc/testsuite/gcc.dg/pr97357.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/pr97357.c b/gcc/testsuite/gcc.dg/pr97357.c
index 2b32d13a43f..6b391b7a743 100644
--- a/gcc/testsuite/gcc.dg/pr97357.c
+++ b/gcc/testsuite/gcc.dg/pr97357.c
@@ -22,7 +22,7 @@ void bytelocks(glk *rethead, jmp_buf jb)
 {
   glk *cur, *cur_lk;
 
-  if (( _setjmp (jb)) == 0)
+  if (( setjmp (jb)) == 0)
     for (cur = &l->ByteLock; cur != ((glk *)0) ; cur = (cur)->nxt)
         for (cur_lk = &lk->ByteLock; cur_lk != ((glk *)0); cur_lk = cur_lk->nxt)
           {


More information about the Gcc-cvs mailing list