re PR tree-optimization/36245 (internal compiler error: in build2_stat, at tree.c:3116)

2008-05-15  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/36245
	* tree-ssa-address.c (add_to_parts): Deal with non-pointer
	bases.

	* gcc.c-torture/compile/pr36245.c: New testcase.

From-SVN: r135361
This commit is contained in:
Richard Guenther 2008-05-15 14:09:11 +00:00 committed by Richard Biener
parent 82e6d02f7b
commit 41d1c8ddaf
2 changed files with 26 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-05-15 Richard Guenther <rguenther@suse.de>
PR tree-optimization/36245
* gcc.c-torture/compile/pr36245.c: New testcase.
2008-05-15 Richard Guenther <rguenther@suse.de>
* gcc.dg/tree-ssa/loadpre7.c: Adjust scan for not performed

View file

@ -0,0 +1,21 @@
extern char buf1[10];
extern char buf2[10];
extern void b(int i, int j, int w);
void a() {
int i,j;
char *p;
int w;
p = buf1;
for(j = 0;j < 10; j++) {
for(i = 0;i < 10; i++) {
w = *p;
if(w != 1) {
w = buf2[p - buf1];
b(i*2+1, j, w);
}
p++;
}
}
}