public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-3824] tree-optimization/97357: Fix testcase
@ 2020-10-12 14:09 Christophe Lyon
  0 siblings, 0 replies; only message in thread
From: Christophe Lyon @ 2020-10-12 14:09 UTC (permalink / raw)
  To: gcc-cvs

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)
           {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-12 14:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-12 14:09 [gcc r11-3824] tree-optimization/97357: Fix testcase Christophe Lyon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).