git: tcsh - Work around gcc-5 bug

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Aug 7 01:36:09 PDT 2016


commit c1d69b4e943be0ac0b9e60cf997891209e8f7198
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Aug 7 01:04:48 2016 -0700

    tcsh - Work around gcc-5 bug
    
    * GCC-5 improperly tries to optimize tcsh's calloc() replacement into a
      tail-jmp to tcsh's calloc.  It tries to optimize the malloc+memset
      sequence into calloc, inside calloc itself.
    
      This is really a bug in GCC-5 but work around it for now by hacking
      tcsh's calloc().

Summary of changes:
 contrib/tcsh-6/tc.alloc.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c1d69b4e943be0ac0b9e60cf997891209e8f7198


-- 
DragonFly BSD source repository


More information about the Commits mailing list