This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/24689] store_ccp does nothing for array references
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Nov 2005 04:52:57 -0000
- Subject: [Bug tree-optimization/24689] store_ccp does nothing for array references
- References: <bug-24689-5009@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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