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: r175687
This commit is contained in:
Richard Guenther 2011-06-30 08:56:02 +00:00 committed by Richard Biener
parent c780ac5222
commit 195103426d
2 changed files with 30 additions and 0 deletions

View 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.

View File

@ -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;
}