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 does nothing for array references



------- Comment #4 from pinskia at gcc dot gnu dot org  2005-11-06 04:52 -------
Here is another testcase:
extern void bar (unsigned int);
extern void bar1 (const char **);

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

  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]