public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5517] tree-optimization/112282 - fix testcase
@ 2023-11-16 7:05 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2023-11-16 7:05 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:31bf21c78029434b7515a94477ce3565bff0743f
commit r14-5517-g31bf21c78029434b7515a94477ce3565bff0743f
Author: Richard Biener <rguenther@suse.de>
Date: Thu Nov 16 08:03:55 2023 +0100
tree-optimization/112282 - fix testcase
Avoid requiring a glibc specific symbol.
PR tree-optimization/112282
* gcc.dg/torture/pr112282.c: Do not use __assert_fail.
Diff:
---
gcc/testsuite/gcc.dg/torture/pr112282.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/torture/pr112282.c b/gcc/testsuite/gcc.dg/torture/pr112282.c
index 23e0ed64b82..6190b90cf66 100644
--- a/gcc/testsuite/gcc.dg/torture/pr112282.c
+++ b/gcc/testsuite/gcc.dg/torture/pr112282.c
@@ -1,7 +1,12 @@
/* { dg-do run } */
int printf(const char *, ...);
-void __assert_fail();
+void abort ();
+/* We need an abort that isn't noreturn. */
+void __attribute__((noipa)) my_abort ()
+{
+ abort ();
+}
int a, g, h, i, v, w = 2, x, y, ab, ac, ad, ae, af, ag;
static int f, j, m, n, p, r, u, aa;
struct b {
@@ -72,7 +77,7 @@ ak:
ah.e = l.c % q.d;
q.c = au.e;
if ((q.d && q.c) || ah.e)
- __assert_fail();
+ my_abort ();
q.c = 0;
if (au.d > m || ah.e)
w = au.c | (n & ah.c);
@@ -93,7 +98,7 @@ ak:
if (ah.d)
o.c = l.c & o.c & q.c;
if (q.d)
- __assert_fail();
+ my_abort ();
printf("", an);
printf("", q);
printf("", au);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-16 7:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-16 7:05 [gcc r14-5517] tree-optimization/112282 - fix testcase Richard Biener
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).