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
+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
--- /dev/null
+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++;
+ }
+ }
+}