This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/21265] [4.0/4.1 regression] GCC fails to optimize tail call to memset

------- 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);

foo (void *to,int i, size_t count)
  memset (to, 0, count);

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]