* autoload.h: Make DLL initializers global to avoid inlining.

* exceptions.cc (interrupt_setup): Reorganize arguments to allow use of
regparm.
(interrupt_now): Ditto.
(interrupt_on_return): Ditto.
(call_handler): Ditto.
This commit is contained in:
Christopher Faylor
2000-12-26 03:21:05 +00:00
parent 48c4679d55
commit 2803e941b3
4 changed files with 30 additions and 14 deletions

View File

@ -12,8 +12,8 @@ details. */
#define LoadDLLinitfunc(dllname) \
HANDLE NO_COPY dllname ## _handle = NULL; \
static int dllname ## _init () __asm__ (#dllname "_init") __attribute__ ((unused)); \
static int dllname ## _init ()
/*static*/ int dllname ## _init () __asm__ (#dllname "_init"); \
/*static*/ int dllname ## _init ()
#define LoadDLLinitnow(dllname) \
({__asm__ ("movl $cygwin_dll_func_load, " #dllname "_init_holder"); dllname##_init ();})