From: Dan Nicolaescu Date: Wed, 1 Jun 2011 21:54:35 +0000 (-0700) Subject: Make it possible to build with GCC-4.6+ -O2 -flto. X-Git-Tag: emacs-pretest-24.0.90~104^2~618^2~53 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=698d32e2c326871239dc0cb10659a0ecb25bf558;p=emacs.git Make it possible to build with GCC-4.6+ -O2 -flto. * src/emacs.c (__malloc_initialize_hook): Mark as EXTERNALLY_VISIBLE. --- 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 */