This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/18291] [4.0 Regression]: ICE in merge_alias_info


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-06 23:30 -------
One where we only depend on no extern functions:
int baz(int k2)
{
  int i, j, *p, k = 1, k1 = 0;
  if (k2)
    p = &j;
  else
    p = &i;
  if (k1)
    *p = 0 , p = &k;
  *p = 1;
  return k;
}

In fact this should optimize to just return 0;

-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]