[Bug tree-optimization/17141] *&a->b is not folded
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Mar 23 20:10:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-23 20:10 -------
And here is a testcase for a missed optimization on the TREE level:
void abort (void);
struct a
{
int i;
} *a;
int f(void)
{
int *ii = &a->i;
void *l;
a->i = 1;
if (*ii)
l = &&l1;
else
l = &&l2;
goto *l;
l1:
return 0;
l2:
abort ();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17141
More information about the Gcc-bugs
mailing list