From: Paul Eggert Date: Tue, 2 Feb 2016 17:16:24 +0000 (-0800) Subject: Port malloc.h hygiene fix to LTO X-Git-Tag: emacs-26.0.90~2759 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=39d8cac38b1668b3dc12dd5a2cfa35ce57adbac9;p=emacs.git Port malloc.h hygiene fix to LTO * src/alloc.c (__malloc_initialize_hook): Make it externally visible (Bug#22522). --- diff --git a/src/alloc.c b/src/alloc.c index 57ef4c5deab..b40c1f387cb 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -157,10 +157,12 @@ malloc_initialize_hook (void) } } +/* Declare the malloc initialization hook, which runs before 'main' starts. + EXTERNALLY_VISIBLE works around Bug#22522. */ # ifndef __MALLOC_HOOK_VOLATILE # define __MALLOC_HOOK_VOLATILE # endif -voidfuncptr __MALLOC_HOOK_VOLATILE __malloc_initialize_hook +voidfuncptr __MALLOC_HOOK_VOLATILE __malloc_initialize_hook EXTERNALLY_VISIBLE = malloc_initialize_hook; #endif