[Bug tree-optimization/21463] min/max and references

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Feb 5 21:09:00 GMT 2006



------- Comment #7 from pinskia at gcc dot gnu dot org  2006-02-05 21:09 -------
The problem here is actually not I would I had orginally thought but instead
the following issue:
struct f
{
  int i;
};

int g(int i, int c, struct f *ff)
{
  int *t;
  if (c)
   t = &i;
  else
   t = &ff->i;
  return *t;
}

We don't change the *t into the i and ff->i which causes the min/max not be
reconized.  This is related to PR 19431 which is a similar issue.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |19431


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



More information about the Gcc-bugs mailing list