Removed the obsolete native-code generators for Alpha, HPPA, IA64 and MIPS.
Part 4: cleaning up some more references & specific code for these archs. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11886 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
5c432bf22c
commit
4af724cf54
|
@ -15,26 +15,9 @@
|
|||
|
||||
/* Processor- and OS-dependent signal interface */
|
||||
|
||||
/****************** Alpha, all OS */
|
||||
|
||||
#if defined(TARGET_alpha)
|
||||
|
||||
#define DECLARE_SIGNAL_HANDLER(name) \
|
||||
static void name(int sig, int code, struct sigcontext * context)
|
||||
|
||||
#define SET_SIGACT(sigact,name) \
|
||||
sigact.sa_handler = (void (*)(int)) (name); \
|
||||
sigact.sa_flags = 0
|
||||
|
||||
typedef long context_reg;
|
||||
#define CONTEXT_PC (context->sc_pc)
|
||||
#define CONTEXT_EXCEPTION_POINTER (context->sc_regs[15])
|
||||
#define CONTEXT_YOUNG_LIMIT (context->sc_regs[13])
|
||||
#define CONTEXT_YOUNG_PTR (context->sc_regs[14])
|
||||
|
||||
/****************** AMD64, Linux */
|
||||
|
||||
#elif defined(TARGET_amd64) && defined (SYS_linux)
|
||||
#if defined(TARGET_amd64) && defined (SYS_linux)
|
||||
|
||||
#define DECLARE_SIGNAL_HANDLER(name) \
|
||||
static void name(int sig, siginfo_t * info, ucontext_t * context)
|
||||
|
@ -177,23 +160,6 @@
|
|||
|
||||
#define CONTEXT_FAULTING_ADDRESS ((char *) info->si_addr)
|
||||
|
||||
/****************** MIPS, all OS */
|
||||
|
||||
#elif defined(TARGET_mips)
|
||||
|
||||
#define DECLARE_SIGNAL_HANDLER(name) \
|
||||
static void name(int sig, int code, struct sigcontext * context)
|
||||
|
||||
#define SET_SIGACT(sigact,name) \
|
||||
sigact.sa_handler = (void (*)(int)) (name); \
|
||||
sigact.sa_flags = 0
|
||||
|
||||
typedef int context_reg;
|
||||
#define CONTEXT_PC (context->sc_pc)
|
||||
#define CONTEXT_EXCEPTION_POINTER (context->sc_regs[30])
|
||||
#define CONTEXT_YOUNG_LIMIT (context->sc_regs[22])
|
||||
#define CONTEXT_YOUNG_PTR (context->sc_regs[23])
|
||||
|
||||
/****************** PowerPC, MacOS X */
|
||||
|
||||
#elif defined(TARGET_power) && defined(SYS_rhapsody)
|
||||
|
|
|
@ -28,7 +28,7 @@ clean::
|
|||
rm -f *~
|
||||
|
||||
bng.$(O): bng.h bng_digit.c \
|
||||
bng_alpha.c bng_amd64.c bng_ia32.c bng_mips.c bng_ppc.c bng_sparc.c
|
||||
bng_amd64.c bng_ia32.c bng_ppc.c bng_sparc.c
|
||||
|
||||
depend:
|
||||
gcc -MM $(CFLAGS) *.c > .depend
|
||||
|
|
Loading…
Reference in New Issue