This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/36116] ICE with -O2 -ftree-loop-distribution -funsafe-loop-optimizations -m32
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Dec 2008 03:22:04 -0000
- Subject: [Bug tree-optimization/36116] ICE with -O2 -ftree-loop-distribution -funsafe-loop-optimizations -m32
- References: <bug-36116-8902@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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