[Bug tree-optimization/23777] Does not remove all references to var
bonzini at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Sep 8 12:03:00 GMT 2005
------- Additional Comments From bonzini at gcc dot gnu dot org 2005-09-08 12:02 -------
Even more reduced:
extern void f(char *const *);
void g (char **o)
{
static const char *const multilib_exclusions_raw[] = { 0 };
const char *const *q = multilib_exclusions_raw;
f (o);
while (*q++)
f (o);
}
The strange thing is, turn the loop into do...while, and it cannot eliminate
multilib_exclusions_raw not even at the RTL level. Actually it cannot eliminate
the loop at all if it is a do...while.
Paolo
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23777
More information about the Gcc-bugs
mailing list