[Bug middle-end/32033] [4.3 Regression] ICE in fold_comparison, at fold-const.c:8531 at -O3

2007-05-22 Thread tbm at cyrius dot com


--- Comment #1 from tbm at cyrius dot com  2007-05-22 11:11 ---
Reduced testcase:

static int spready[] = {
};
void explosion_map (int y)
{
  for (int i = 0; i  4; i++)
if (y * spready[i]  0)
  break;
}
void explosion (void)
{
  explosion_map (0);
  for (int i = 0; i  2; i++)
continue;
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32033



[Bug middle-end/32033] [4.3 Regression] ICE in fold_comparison, at fold-const.c:8531 at -O3

2007-05-22 Thread rguenth at gcc dot gnu dot org


--- Comment #2 from rguenth at gcc dot gnu dot org  2007-05-22 13:26 ---
Confirmed.  We enter with the unfolded tree

  D.2472_4 * 00

which is propagated from

  D.2473_6 = D.2472_4 * 0

during forwprop.  inlining is not properly folding its trees during inlining
of explosion_map (0).


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||rguenth at gcc dot gnu dot
   ||org, hubicka at gcc dot gnu
   ||dot org
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2007-05-22 13:26:45
   date||
   Target Milestone|--- |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32033



[Bug middle-end/32033] [4.3 Regression] ICE in fold_comparison, at fold-const.c:8531 at -O3

2007-05-22 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2007-05-22 23:08 ---
I know what this issue is.  This is most likely the same issue as PR 30564,
which I need to get around to fixing still.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

  BugsThisDependsOn||30564


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32033



[Bug middle-end/32033] [4.3 Regression] ICE in fold_comparison, at fold-const.c:8531 at -O3

2007-05-22 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2007-05-22 23:10 ---
And it is the same as my patch fixes the problem also so closing as a dup.

*** This bug has been marked as a duplicate of 30564 ***


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32033