From 698d32e2c326871239dc0cb10659a0ecb25bf558 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Wed, 1 Jun 2011 14:54:35 -0700 Subject: [PATCH] Make it possible to build with GCC-4.6+ -O2 -flto. * src/emacs.c (__malloc_initialize_hook): Mark as EXTERNALLY_VISIBLE. --- src/ChangeLog | 6 ++++++ src/emacs.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index a59b8740094..0302f06f9c0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2011-06-01 Dan Nicolaescu + + Make it possible to build with GCC-4.6+ -O2 -flto. + + * emacs.c (__malloc_initialize_hook): Mark as EXTERNALLY_VISIBLE. + 2011-06-01 Stefan Monnier * minibuf.c (get_minibuffer, read_minibuf_unwind): diff --git a/src/emacs.c b/src/emacs.c index 3a7c5c0bf3d..70d90fd5781 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -678,7 +678,7 @@ malloc_initialize_hook (void) } } -void (*__malloc_initialize_hook) (void) = malloc_initialize_hook; +void (*__malloc_initialize_hook) (void) EXTERNALLY_VISIBLE = malloc_initialize_hook; #endif /* DOUG_LEA_MALLOC */ -- 2.39.5