https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83022

Fangrui Song <i at maskray dot me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |i at maskray dot me

--- Comment #5 from Fangrui Song <i at maskray dot me> ---
void *my_malloc(size_t size, int my_flags)
{
  void* point = malloc(size);
  if (my_flags & 32) memset(point, 0, size);
  return point;
}
=>
my_malloc(unsigned long, int):
        mov     esi, 1
        jmp     calloc

---

If GCC supports -fsanitize=memory, note that this transformation should be
disabled as well to not lose error checking.

Reply via email to