From 13489a8e18bfae8b56052bfa373cb3343bdba033 Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Fri, 25 Jun 2004 00:17:59 +0000 Subject: [PATCH] Fix a crash in gen-apply under x86-64. --- ChangeLog | 4 ++++ tools/gen-apply.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index d97fd13..533736e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ +2004-06-25 Rhys Weatherley + + * tools/gen-apply.c: fix a crash in gen-apply under x86-64. + 2004-06-24 Rhys Weatherley * jit/jit-reg-alloc.c, jit/jit-rules-arm.h, jit/jit-rules-interp.c, diff --git a/tools/gen-apply.c b/tools/gen-apply.c index 41194f0..dc46fb1 100644 --- a/tools/gen-apply.c +++ b/tools/gen-apply.c @@ -51,6 +51,9 @@ the "jit-apply-rules.h" file. #if defined(__APPLE__) && defined(__MACH__) #define PLATFORM_IS_MACOSX 1 #endif +#if defined(__x86_64__) || defined(__x86_64) + #define PLATFORM_IS_X86_64 1 +#endif #if defined(PLATFORM_IS_GCC) || defined(PLATFORM_IS_WIN32) @@ -924,6 +927,7 @@ void detect_struct_conventions(void) call_struct_test(14); call_struct_test(15); call_struct_test(16); +#ifndef PLATFORM_IS_X86_64 call_struct_test(17); call_struct_test(18); call_struct_test(19); @@ -972,6 +976,7 @@ void detect_struct_conventions(void) call_struct_test(62); call_struct_test(63); call_struct_test(64); +#endif /* PLATFORM_IS_X86_64 */ } /* -- 2.47.3