(top_check): Force hook value into register.
authorUlrich Drepper <drepper@redhat.com>
Fri, 17 Apr 2009 17:55:06 +0000 (17:55 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 17 Apr 2009 17:55:06 +0000 (17:55 +0000)
malloc/hooks.c

index 5360037..622a815 100644 (file)
@@ -235,7 +235,7 @@ top_check()
       return -1;
     }
   /* Call the `morecore' hook if necessary.  */
-  void (*hook) (void) = __after_morecore_hook;
+  void (*hook) (void) = force_reg (__after_morecore_hook);
   if (hook)
     (*hook) ();
   main_arena.system_mem = (new_brk - mp_.sbrk_base) + sbrk_size;