Browse Source

* include/cln/modules.h (CL_JUMP_TO): Fix for Intel Mac.

master
Richard Kreckel 19 years ago
parent
commit
5d7684ba82
  1. 4
      ChangeLog
  2. 6
      include/cln/modules.h

4
ChangeLog

@ -1,3 +1,7 @@
2006-05-07 Richard B. Kreckel <kreckel@ginac.de>
* include/cln/modules.h (CL_JUMP_TO): Fix for Intel Mac.
2006-04-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2006-04-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Prepare for autoconf-2.60. Prepare for autoconf-2.60.

6
include/cln/modules.h

@ -126,7 +126,11 @@
// in gcc-2.95. For new CPUs, look for "jump" and "indirect_jump" in gcc's // in gcc-2.95. For new CPUs, look for "jump" and "indirect_jump" in gcc's
// machine description. // machine description.
#if defined(__i386__) #if defined(__i386__)
#define CL_JUMP_TO(addr) ASM_VOLATILE("jmp %*%0" : : "rm" ((void*)(addr)))
#if defined(__APPLE__) && defined(__MACH__)
#define CL_JUMP_TO(addr) ASM_VOLATILE("jmp " ASM_UNDERSCORE_PREFIX #addr)
#else
#define CL_JUMP_TO(addr) ASM_VOLATILE("jmp %*%0" : : "rm" ((void*)(addr)))
#endif
#endif #endif
#if defined(__x86_64__) #if defined(__x86_64__)
#define CL_JUMP_TO(addr) ASM_VOLATILE("jmp " ASM_UNDERSCORE_PREFIX #addr) #define CL_JUMP_TO(addr) ASM_VOLATILE("jmp " ASM_UNDERSCORE_PREFIX #addr)

Loading…
Cancel
Save