PATCH: Add a testcase for PR target/47369

H.J. Lu hongjiu.lu@intel.com
Fri Aug 5 23:24:00 GMT 2011


Hi,

I checked in this patch to add a testcase for PR target/47369.

H.J.
---
Index: gcc.dg/pr47369-1.c
===================================================================
--- gcc.dg/pr47369-1.c	(revision 0)
+++ gcc.dg/pr47369-1.c	(revision 0)
@@ -0,0 +1,13 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target fpic } */
+/* { dg-options "-O2 -fPIC" } */
+
+struct FILE
+{
+  int x;
+};
+extern struct FILE __sF[];
+extern void bar (struct FILE *);
+void dlmalloc_stats() {
+   bar ((&__sF[2]));
+}
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 177489)
+++ ChangeLog	(working copy)
@@ -1,5 +1,10 @@
 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
 
+	PR target/47369
+	* gcc.dg/pr47369-1.c: New.
+
+2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
+
 	PR middle-end/47364
 	* gcc.dg/torture/pr47364-1.c: New.
 	* gcc.c-torture/compile/pr47364-1.c: Likewise.



More information about the Gcc-patches mailing list