summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-06-30 08:44:18 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-06-30 08:44:18 +0000
commit4372bd28f182338b74f45ac67dd316d11e282cef (patch)
tree2b259f538768368eb2119df33fed0fa9b5121c19
parentce7e54ff0d6dcddde211799be10e83a1aed4a9bb (diff)
downloadgcc-4372bd28f182338b74f45ac67dd316d11e282cef.tar.gz
re PR tree-optimization/38752 (ICE in set_uids_in_ptset, at tree-ssa-structalias.c:4817)
2011-06-30 Richard Guenther <rguenther@suse.de> PR tree-optimization/38752 * gcc.c-torture/compile/pr38752.c: New testcase. From-SVN: r175684
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr38752.c25
2 files changed, 30 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ac678156cc3..5d941c40e27 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 00000000000..3d409bf96f5
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr38752.c
@@ -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;
+}
+