glibc/malloc
Andreas Jaeger f0c1dedf0d Fix tst-obprintf - and mcheck in general
tst-obprintf failed with GCC 4.7.

It turned out that this is the fault of GCC optimizing away the
following from malloc/mcheck.c:
      /* We call malloc() once here to ensure it is initialized.  */
      void *p = malloc (0);
      free (p);

gcc sees the malloc(0);free pair and removes it completely.

And now malloc is not properly initialized and we screw up if both
mcheck is used (via tst-obprintf) and MALLOC_CHECK_ is set (as it is in my
environment).
2012-05-03 22:12:59 +02:00
..
Depend
Makefile
Versions
arena.c
hooks.c
malloc.c
malloc.h
mallocbug.c Avoid warnings in test malloc program 2012-03-28 13:05:11 -04:00
mcheck-init.c
mcheck.c Fix tst-obprintf - and mcheck in general 2012-05-03 22:12:59 +02:00
mcheck.h
memusage.c
memusage.sh
memusagestat.c
morecore.c
mtrace.c
mtrace.pl
obstack.c
obstack.h
set-freeres.c
thread-freeres.c
tst-calloc.c
tst-malloc.c
tst-mallocfork.c
tst-mallocstate.c
tst-mcheck.c
tst-mtrace.c
tst-mtrace.sh
tst-obstack.c
tst-trim1.c
tst-valloc.c