]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/38752 (ICE in set_uids_in_ptset, at tree-ssa-structalias...
authorRichard Guenther <rguenther@suse.de>
Thu, 30 Jun 2011 08:51:23 +0000 (08:51 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 30 Jun 2011 08:51:23 +0000 (08:51 +0000)
2011-06-30  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/38752
* gcc.c-torture/compile/pr38752.c: New testcase.

From-SVN: r175686

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr38752.c [new file with mode: 0644]

index 2f86305b65df70cece05a09597199331f1072570..c1279d3ca463f607ecdf678dbdd79166008976fc 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-30  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/38752
+       * gcc.c-torture/compile/pr38752.c: New testcase.
+
 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnat.dg/opt17.ad[sb]: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr38752.c b/gcc/testsuite/gcc.c-torture/compile/pr38752.c
new file mode 100644 (file)
index 0000000..3d409bf
--- /dev/null
@@ -0,0 +1,25 @@
+typedef struct
+{
+  int             baddr;
+} mstruct_t;
+
+static struct
+{
+  unsigned int    mapnum;
+  mstruct_t       unused;
+} mtab;
+
+static mstruct_t *mactab = &mtab.unused;
+
+int
+main(void)
+{
+  int i;
+  int addr;
+
+  for (i=1; i <= mtab.mapnum; i++)
+    if (addr < mactab[i].baddr)
+      break;
+  return 0;
+}
+