This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch testsuite obvious] Use setjmp, not sigsetjmp in gcc.dg/pr78582.c
- From: James Greenhalgh <james dot greenhalgh at arm dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Cc: <nd at arm dot com>, <richard dot guenther at gmail dot com>, <mliska at suse dot cz>
- Date: Thu, 1 Dec 2016 15:35:28 +0000
- Subject: [Patch testsuite obvious] Use setjmp, not sigsetjmp in gcc.dg/pr78582.c
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=pass (sender IP is 217.140.96.140) smtp.mailfrom=arm.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=bestguesspass action=none header.from=arm.com;
- Nodisclaimer: True
- References: <CAFiYyc24fh4X5vxPdwuvFrfdzDHTzgfnT_ZaAd19DdHzdxq2Tg@mail.gmail.com>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
As subject.
Newlib doesn't have sigsetjmp, so the test fails for our newlib-based
testruns. Confirmed that this adjusted test would still have ICE'd
without r242958.
Committed as obvious as revision 243116.
Thanks,
James
---
2016-12-01 James Greenhalgh <james.greenhalgh@arm.com>
* gcc.dg/pr78582.c (main): Call setjmp, not sigsetjmp.
diff --git a/gcc/testsuite/gcc.dg/pr78582.c b/gcc/testsuite/gcc.dg/pr78582.c
index 3084e3b..5284e3f 100644
--- a/gcc/testsuite/gcc.dg/pr78582.c
+++ b/gcc/testsuite/gcc.dg/pr78582.c
@@ -10,7 +10,7 @@ int
main (int argc, char argv, char env)
{
int a;
- sigsetjmp (0, 0);
+ setjmp (0);
argc = a = argc;
reader_loop ();