[Bug tree-optimization/24689] store_ccp is missing an opportunity because of call clobber/alias load?
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Nov 6 04:47:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list