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:
parent
82e6d02f7b
commit
41d1c8ddaf
2 changed files with 26 additions and 0 deletions
|
@ -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
|
||||
|
|
21
gcc/testsuite/gcc.c-torture/compile/pr36245.c
Normal file
21
gcc/testsuite/gcc.c-torture/compile/pr36245.c
Normal 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++;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue