+2004-07-15 Frank Ch. Eigler <fche@redhat.com>
+
+ g++/15861
+ * mf-runtime.c (__mf_init): Make it non-static. Tolerate
+ repeated invocation.
+
2004-07-09 Frank Ch. Eigler <fche@redhat.com>
Test case for g++/15861
/* ------------------------------------------------------------------------ */
/* Forward function declarations */
-static void __mf_init () CTOR;
+void __mf_init () CTOR;
static void __mf_sigusr1_respond ();
static unsigned __mf_find_objects (uintptr_t ptr_low, uintptr_t ptr_high,
__mf_object_t **objs, unsigned max_objs);
}
-void
+/* not static */void
__mf_init ()
{
char *ov = 0;
+ /* Return if initialization has already been done. */
+ if (LIKELY (__mf_starting_p == 0))
+ return;
+
/* This initial bootstrap phase requires that __mf_starting_p = 1. */
#ifdef PIC
__mf_resolve_dynamics ();