git: calloc - Work around gcc-8 bug (2).

Rimvydas Jasinskas zrj at
Sat May 5 03:37:33 PDT 2018

commit 55d72589bc4218cce7f3f83a77dc0e101761f56c
Author: zrj <rimvydas.jasinskas at>
Date:   Sat Apr 28 08:30:03 2018 +0300

    calloc - Work around gcc-8 bug (2).
    GCC-8 at -O2 improperly tries to optimize calloc() replacement even for
    malloc+bzero sequence back to calloc from calloc itself. This affects
    both main root's shell (tcsh as default) and dynamic linker.
    Explicitly use -fno-builtin-malloc to prevent that at any -Ox level.

Summary of changes:
 bin/csh/csh/Makefile      | 6 ++++++
 libexec/rtld-elf/Makefile | 6 ++++++
 2 files changed, 12 insertions(+)

DragonFly BSD source repository

More information about the Commits mailing list