This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/16172] simple function generates an inappropriate memmove() call
- 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: 13 Jan 2005 19:25:11 -0000
- Subject: [Bug middle-end/16172] simple function generates an inappropriate memmove() call
- References: <20040624072409.16172.akpm@osdl.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-13 19:25 -------
Here is a testcase which I can reproduce it with on powerpc-darwin (it just has more elements in the
struct):
struct fn_hash_idx_t {
unsigned datum;
unsigned datum2;
unsigned datum3;
unsigned datumi4;
unsigned datum5;
unsigned datum6;
unsigned datum7;
unsigned datum8;
unsigned datum9;
};
struct fn_hash_idx_t
fn_hash(unsigned h)
{
return *(struct fn_hash_idx_t*)&h;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16172