diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2020-10-12 14:04:06 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2020-10-12 14:09:13 +0000 |
commit | f10f11eb63b0ed082674d9a589e67230aa49efb5 (patch) | |
tree | 1ca52e6e3a99785329eb56c9fc5c456a121ec889 | |
parent | 126ed72b9f48f8530b194532cc281fb761690435 (diff) | |
download | gcc-f10f11eb63b0ed082674d9a589e67230aa49efb5.zip gcc-f10f11eb63b0ed082674d9a589e67230aa49efb5.tar.gz gcc-f10f11eb63b0ed082674d9a589e67230aa49efb5.tar.bz2 |
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.
-rw-r--r-- | gcc/testsuite/gcc.dg/pr97357.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/pr97357.c b/gcc/testsuite/gcc.dg/pr97357.c index 2b32d13..6b391b7 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) { |