From: Richard Guenther Date: Thu, 30 Jun 2011 08:44:18 +0000 (+0000) Subject: re PR tree-optimization/38752 (ICE in set_uids_in_ptset, at tree-ssa-structalias... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4372bd28f182338b74f45ac67dd316d11e282cef;p=gcc.git re PR tree-optimization/38752 (ICE in set_uids_in_ptset, at tree-ssa-structalias.c:4817) 2011-06-30 Richard Guenther PR tree-optimization/38752 * gcc.c-torture/compile/pr38752.c: New testcase. From-SVN: r175684 --- 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 + + PR tree-optimization/38752 + * gcc.c-torture/compile/pr38752.c: New testcase. + 2011-06-30 Ira Rosen * 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; +} +