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/24689] store_ccp is missing an opportunity because of call clobber/alias load?



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-11-06 04:47 -------
Note switch statements here have nothing to do with the real issue:
extern void bar (unsigned int);
extern void bar1 (const char **);

int
foo (void)
{
  char buf[1] = { 3 };
  const char *p = buf;
  const char **q = &p;
  unsigned int ch;
  if(**q)
    {
            ch = 1;
    }
  else ch =2;

  bar (ch);
  bar1 (q);
  return ch;
}


-- 


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


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