public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] Add testcase from PR tree-optimization/71109
@ 2018-12-03 13:35 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2018-12-03 13:35 UTC (permalink / raw)
  To: gcc-patches

Hi!

This testcase broke on x86_64-linux with -O3 with r227775
and got fixed or went latent with r236372.  I've just committed the
testcase to the testsuite as obvious, let's close the PR now.

2018-12-03  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/71109
	* gcc.c-torture/compile/pr71109.c: New test.

--- gcc/testsuite/gcc.c-torture/compile/pr71109.c.jj	2018-12-03 14:28:42.678952260 +0100
+++ gcc/testsuite/gcc.c-torture/compile/pr71109.c	2018-12-03 14:28:38.928013113 +0100
@@ -0,0 +1,31 @@
+/* PR tree-optimization/71109 */
+
+struct S { int g, h; signed char i; int j; signed char k; int l[4]; } a, c;
+struct T { signed char g; } e;
+int *b, d;
+static void foo ();
+
+void
+bar (void)
+{
+  while (d)
+    {
+      int k;
+      struct T f[3];
+      foo (bar, a);
+      for (k = 0;; k++)
+	f[k] = e;
+    }
+}
+
+static inline void
+foo (int x, struct S y, struct T z)
+{
+  for (z.g = 2; z.g; z.g--)
+    {
+      c = a = y;
+      *b |= 6;
+      if (y.g)
+	break;
+    }
+}

	Jakub

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

only message in thread, other threads:[~2018-12-03 13:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-03 13:35 [committed] Add testcase from PR tree-optimization/71109 Jakub Jelinek

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