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:44:18 +0000 (08:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 30 Jun 2011 08:44:18 +0000 (08:44 +0000)
2011-06-30  Richard Guenther  <rguenther@suse.de>

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

From-SVN: r175684

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

index ac678156cc3e04e645802b07fbf7516253bb7589..5d941c40e277ea71788e4ee6901f521fb98d5057 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-30  Ira Rosen  <ira.rosen@linaro.org>
 
        * gcc.dg/vect/slp-widen-mult-half.c: 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;
+}
+