]> git.eshelyaron.com Git - emacs.git/commitdiff
Port malloc.h hygiene fix to LTO
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 2 Feb 2016 17:16:24 +0000 (09:16 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 2 Feb 2016 17:16:47 +0000 (09:16 -0800)
* src/alloc.c (__malloc_initialize_hook):
Make it externally visible (Bug#22522).

src/alloc.c

index 57ef4c5deab20d7d0745fafa87a6f9ac5fc246df..b40c1f387cb4f98c7275914fecc75832240a5149 100644 (file)
@@ -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