__malloc_initialize_hook is deprecated.
+2016-05-11 Florian Weimer <fweimer@redhat.com>
+
+ Do not use mcheck in localedef.
+ * locale/programs/localedef.c (turn_on_mcheck)
+ (__malloc_initialize_hook): Remove.
+
2016-05-11 Stefan Liebler <stli@linux.vnet.ibm.com>
* sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
#include <fcntl.h>
#include <libintl.h>
#include <locale.h>
-#include <mcheck.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
return result;
}
-
-static void
-turn_on_mcheck (void)
-{
- /* Enable `malloc' debugging. */
- mcheck (NULL);
- /* Use the following line for a more thorough but much slower testing. */
- /* mcheck_pedantic (NULL); */
-}
-
-void (*__malloc_initialize_hook) (void) = turn_on_mcheck;