From: Christophe Lyon Date: Mon, 12 Oct 2020 14:04:06 +0000 (+0000) Subject: tree-optimization/97357: Fix testcase X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f10f11eb63b0ed082674d9a589e67230aa49efb5;p=gcc.git tree-optimization/97357: Fix testcase Calling _setjmp causing a warning when targeting newlib. 2020-10-12 Christophe Lyon gcc/testsuite/ PR tree-optimization/97357 * gcc.dg/pr97357.c: Call setjmp instead of _setjmp. --- 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) {