------- Comment #10 from rguenth at gcc dot gnu dot org 2006-02-16 13:22 ------- The problem is that we do not honour the override decl for memcpy simply because for expand_call ("foo(&i, st);") we end up in emit_block_move_via_libcall which builds yet another "memcpy" decl via expr.c:init_block_move_fn(). Yay.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22017