This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15577] New: ICE on legal
- From: "dalej at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2004 22:46:32 -0000
- Subject: [Bug tree-optimization/15577] New: ICE on legal
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Probably an inliner bug. Fails in mainline as of now.
g++ -O3 vv.cc
vv.cc: In function `long int intrand()':
vv.cc:8: internal compiler error: in emit_move_insn, at expr.c:2799
static long seeds[100];
long opp_nextrand(long& seed)
{
return seed;
}
long intrand()
{
return opp_nextrand(seeds[0]);
}
First dump after inlining (gimple) looks like
long int<D5> <D1542>;
<D1542> = seeds<D1530>;
which is wrong as seeds is an array.
--
Summary: ICE on legal
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dalej at apple dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-apple-darwin7.3.0
GCC host triplet: powerpc-apple-darwin7.3.0
GCC target triplet: powerpc-apple-darwin7.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15577