emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 39d8cac: Port malloc.h hygiene fix to LTO


From: Paul Eggert
Subject: [Emacs-diffs] master 39d8cac: Port malloc.h hygiene fix to LTO
Date: Tue, 02 Feb 2016 17:16:51 +0000

branch: master
commit 39d8cac38b1668b3dc12dd5a2cfa35ce57adbac9
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Port malloc.h hygiene fix to LTO
    
    * src/alloc.c (__malloc_initialize_hook):
    Make it externally visible (Bug#22522).
---
 src/alloc.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/alloc.c b/src/alloc.c
index 57ef4c5..b40c1f3 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]