------- Comment #2 from reichelt at gcc dot gnu dot org 2008-12-29 03:22 ------- Instead of a segfault I see a crash in fold_binary, at fold-const.c:9278
Reduced testcase that crashes already with "-O -ftree-loop-distribution": ========================================== extern void *malloc (__SIZE_TYPE__ n); void foo() { char *p, *q; int i; p = malloc(8); q = malloc(8); for (i = 0; i < 8; i += 2) { p[i >> 1] = 0; q[i >> 1] = 0; } } ========================================== Apparently this has been fixed with the patch for PR38250. *** This bug has been marked as a duplicate of 38250 *** -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |reichelt at gcc dot gnu dot | |org Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36116