PATCH: Add a testcase for PR rtl-optimization/47958

H.J. Lu hongjiu.lu@intel.com
Fri Jul 29 07:14:00 GMT 2011


PR rtl-optimization/47958 is fixed now.  I checked in this patch
to add a testcase.

H.J.
---
Index: gcc.dg/torture/pr47958-1.c
===================================================================
--- gcc.dg/torture/pr47958-1.c	(revision 0)
+++ gcc.dg/torture/pr47958-1.c	(revision 0)
@@ -0,0 +1,13 @@
+/* { dg-do assemble } */
+
+void (*foo[6][6]) (int);
+void bar (hdR)
+    int hdR;
+{ }
+void xxx ()
+{
+    unsigned int i, j;
+    for (i = 0; i < 6; ++i)
+	for (j = 0; j < 6; ++j)
+            foo [i][j] = bar;
+}
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 176913)
+++ ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR rtl-optimization/47958
+	* gcc.dg/torture/pr47958-1.c: New.
+
 2011-07-29  Wei Guozhi  <carrot@google.com>
 
 	PR rtl-optimization/49799



More information about the Gcc-patches mailing list