This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
cc1 crashes in function `cselib_invalidate_regno'
- To: gcc at gcc dot gnu dot org
- Subject: cc1 crashes in function `cselib_invalidate_regno'
- From: Denis Chertykov <denisc at overta dot ru>
- Date: Sat, 8 Apr 2000 18:23:31 +0400
- Cc: Bernd Schmidt <bernds at cygnus dot co dot uk>
CVS cc1 (avr port) got SIGSEGV in :
/* We have an overlap. */
unchain_one_elt_list (l);
/* Now, we clear the mapping from value to reg. It must exist, so
this code will crash intentionally if it doesn't. */
for (p = &v->locs; ; p = &(*p)->next)
{
----> rtx x = (*p)->loc;
if (GET_CODE (x) == REG && REGNO (x) == i)
{
unchain_one_elt_loc_list (p);
break;
}
}
I want to rewrite for(...) as:
for (p = &v->locs; *p; p = &(*p)->next)
But how about this comment:
/* Now, we clear the mapping from value to reg. It must exist, so
this code will crash intentionally if it doesn't. */
Denis.