This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23777] Does not remove all references to var
- 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: 8 Sep 2005 12:04:11 -0000
- Subject: [Bug tree-optimization/23777] Does not remove all references to var
- References: <20050908095910.23777.rguenth@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-08 12:04 -------
Reduced testcase:
static const char *const multilib_exclusions_raw[] = {0};
struct obstack {
char *next_free;
};
static struct obstack multilib_obstack;
int main (int argc, const char **argv)
{
const char *p;
const char *const *q;
f();
q = multilib_exclusions_raw;
while ((p = *q++) != (char *) 0)
{
int __len = (__builtin_strlen (p));
__builtin_memcpy ((multilib_obstack.next_free), 0, (__len));
}
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-09-08 12:04:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23777