------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-28 13:13 ------- Confirmed, it also happens on PPC-darwin too. Note here is a testcase for x86 (32bit): #include <stddef.h> extern void *memset (void *, int, size_t); extern void *my_memset (void *, int, size_t);
void foo (void *to,int i, size_t count) { memset (to, 0, count); } void bar (void *to, int i, size_t count) { my_memset (to, 0, count); } And this has been happening since at least: "3.5.0 20040909" -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 GCC build triplet|x86_64-unknown-linux-gnu | GCC host triplet|x86_64-unknown-linux-gnu | GCC target triplet|x86_64-unknown-linux-gnu | Known to fail| |4.0.0 4.1.0 Known to work| |3.3.3 Last reconfirmed|0000-00-00 00:00:00 |2005-04-28 13:13:37 date| | Summary|[4.0,4.1 regression] GCC |[4.0/4.1 regression] GCC |fails to optimize tail call |fails to optimize tail call |to memset |to memset Target Milestone|--- |4.0.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21265