tree-optimization/97357: Fix testcase
authorChristophe Lyon <christophe.lyon@linaro.org>
Mon, 12 Oct 2020 14:04:06 +0000 (14:04 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Mon, 12 Oct 2020 14:09:13 +0000 (14:09 +0000)
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.

gcc/testsuite/gcc.dg/pr97357.c

index 2b32d13a43f0b64cd056d458b65d87c65f2d1b7b..6b391b7a743d94f1c3f7eeab33b4826d58fe2dd3 100644 (file)
@@ -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)
           {