Browse Source

* include/cln/modules.h (CL_JUMP_TO): Fix AMD64 brokenness.

master
Richard Kreckel 21 years ago
parent
commit
e2abb14636
  1. 4
      ChangeLog
  2. 5
      include/cln/modules.h

4
ChangeLog

@ -1,3 +1,7 @@
2004-06-27 Richard B. Kreckel <kreckel@ginac.de>
* include/cln/modules.h (CL_JUMP_TO): Fix AMD64 brokenness.
2004-06-23 Bruno Haible <bruno@clisp.org>
* configure.ac: Pretend ftime() is not available. Needed by

5
include/cln/modules.h

@ -117,9 +117,12 @@
// except that the latter inhibits inlining of the function containing it
// in gcc-2.95. For new CPUs, look for "jump" and "indirect_jump" in gcc's
// machine description.
#if defined(__i386__) || defined(__x86_64__)
#if defined(__i386__)
#define CL_JUMP_TO(addr) ASM_VOLATILE("jmp %*%0" : : "rm" ((void*)(addr)))
#endif
#if defined(__x86_64__)
#define CL_JUMP_TO(addr) ASM_VOLATILE("jmp " #addr)
#endif
#if defined(__m68k__)
#define CL_JUMP_TO(addr) ASM_VOLATILE("jmp %0@" : : "a" ((void*)(addr)))
#endif

Loading…
Cancel
Save