public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Richard Biener <rguenth@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r14-5555] tree-optimization/112585 - new testcase
Date: Fri, 17 Nov 2023 13:52:33 +0000 (GMT) [thread overview]
Message-ID: <20231117135233.715543858D28@sourceware.org> (raw)
https://gcc.gnu.org/g:04abafe9831f6867af1211ecae853ff373235b2d
commit r14-5555-g04abafe9831f6867af1211ecae853ff373235b2d
Author: Richard Biener <rguenther@suse.de>
Date: Fri Nov 17 14:49:06 2023 +0100
tree-optimization/112585 - new testcase
The offending commit r14-5444-g5ea2965b499f9e was reverted. The
following adds a testcase.
PR tree-optimization/112585
* gcc.dg/torture/pr112585.c: New testcase.
Diff:
---
gcc/testsuite/gcc.dg/torture/pr112585.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/torture/pr112585.c b/gcc/testsuite/gcc.dg/torture/pr112585.c
new file mode 100644
index 00000000000..6c8cbeba3c2
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr112585.c
@@ -0,0 +1,18 @@
+/* { dg-do run } */
+/* { dg-additional-options "-ftree-loop-distribution" } */
+
+static int a[10], b;
+char c, *d = &c, e;
+int main()
+{
+ int f = 0;
+ for (; f < 9; f++) {
+ a[f] = 1;
+ a[f + 1] = e;
+ for (b = 0; b < 8; b++)
+ *d = 0;
+ }
+ if (a[2] != 1)
+ __builtin_abort();
+ return 0;
+}
reply other threads:[~2023-11-17 13:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231117135233.715543858D28@sourceware.org \
--to=rguenth@gcc.gnu.org \
--cc=gcc-cvs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).