This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/33644] New: ICE in local_cprop_pass with -ftrapv for crafty
- From: "janis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Oct 2007 18:07:08 -0000
- Subject: [Bug middle-end/33644] New: ICE in local_cprop_pass with -ftrapv for crafty
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Benchmark crafty from SPEC CPU2000 gets an ICE for 32-bit powerpc (linux, aix,
darwin, eabi) when compiled with -O2 -ftrapv, as shown by this minimized test:
extern char *bar (const char *);
int *m, *b;
void
foo (void)
{
int *mv;
int p;
char a[17];
p = bar (a) - a;
for (mv = m; mv < b; mv++)
if (p && ((*mv & 7) != p))
*mv=0;
}
which gives the following output when compiled with -O2 -ftrapv:
bug.c: In function ?foo?:
bug.c:15: internal compiler error: in local_cprop_pass, at gcse.c:3240
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE in local_cprop_pass with -ftrapv for crafty
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33644