Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl2/libmalloc/lib prevent gcc from combining memse...



details:   https://anonhg.NetBSD.org/src/rev/2f7c414e9e8b
branches:  trunk
changeset: 345047:2f7c414e9e8b
user:      christos <christos%NetBSD.org@localhost>
date:      Wed May 04 14:39:49 2016 +0000

description:
prevent gcc from combining memset+malloc -> calloc inside calloc so that
we end up calling ourselves recursively.

diffstat:

 external/gpl2/libmalloc/lib/Makefile |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 062c17dc2dc6 -r 2f7c414e9e8b external/gpl2/libmalloc/lib/Makefile
--- a/external/gpl2/libmalloc/lib/Makefile      Wed May 04 08:30:22 2016 +0000
+++ b/external/gpl2/libmalloc/lib/Makefile      Wed May 04 14:39:49 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2016/01/15 15:14:02 christos Exp $
+#      $NetBSD: Makefile,v 1.4 2016/05/04 14:39:49 christos Exp $
 
 NOMAN= # defined
 .include <bsd.init.mk>
@@ -12,6 +12,7 @@
 
 
 CPPFLAGS+= -I${DIST} -I${.CURDIR} -DSTDC_HEADERS -DHAVE_STDLIB_H -DHAVE_UNISTD_H
+COPTS+=-fno-builtin-malloc
 
 .PATH: ${DIST}
 



Home | Main Index | Thread Index | Old Index