* gcc.dg/pr41643.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153997
138bc75d-0d04-0410-961f-
82ee72b054a4
+2009-11-07 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/41643
+ * gcc.dg/pr41643.c: New test.
+
2009-11-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/41909
--- /dev/null
+/* PR tree-optimization/41643 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -fno-tree-dce" } */
+
+struct S { int a; };
+
+int
+f (struct S *x)
+{
+ int a = x->a;
+ if (a)
+ return f (x) + a;
+ else
+ return f (x);
+}