From 510193f012b2c3f218e5144158c0421c712d80ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindqvist?= Date: Fri, 7 Aug 2015 17:47:15 +0200 Subject: [PATCH] VM: an unused #define we can eliminate --- vm/os-linux-arm.hpp | 1 - vm/os-linux-ppc.32.hpp | 2 -- vm/os-linux-ppc.64.hpp | 2 -- vm/os-linux-x86.32.hpp | 1 - vm/os-linux-x86.64.hpp | 2 -- vm/os-macosx.hpp | 2 -- 6 files changed, 10 deletions(-) diff --git a/vm/os-linux-arm.hpp b/vm/os-linux-arm.hpp index de0fea20d7..330a1f9471 100644 --- a/vm/os-linux-arm.hpp +++ b/vm/os-linux-arm.hpp @@ -10,7 +10,6 @@ void flush_icache(cell start, cell len); (((ucontext_t*)ucontext)->uc_mcontext.arm_sp) #define UAP_PROGRAM_COUNTER(ucontext) \ (((ucontext_t*)ucontext)->uc_mcontext.arm_pc) -#define UAP_STACK_POINTER_TYPE greg_t #define UAP_SET_TOC_POINTER(uap, ptr) (void)0 #define CODE_TO_FUNCTION_POINTER(code) (void)0 diff --git a/vm/os-linux-ppc.32.hpp b/vm/os-linux-ppc.32.hpp index 8b3df761cb..68ac53bc29 100644 --- a/vm/os-linux-ppc.32.hpp +++ b/vm/os-linux-ppc.32.hpp @@ -15,8 +15,6 @@ namespace factor { #define FUNCTION_CODE_POINTER(ptr) ptr #define FUNCTION_TOC_POINTER(ptr) ptr -#define UAP_STACK_POINTER_TYPE unsigned long - inline static unsigned int uap_fpu_status(void* uap) { union { double as_double; diff --git a/vm/os-linux-ppc.64.hpp b/vm/os-linux-ppc.64.hpp index cd76a01048..634a5d7896 100644 --- a/vm/os-linux-ppc.64.hpp +++ b/vm/os-linux-ppc.64.hpp @@ -24,8 +24,6 @@ namespace factor { #define FUNCTION_TOC_POINTER(ptr) (function_descriptor_field((void*)ptr, 1)) -#define UAP_STACK_POINTER_TYPE unsigned long - inline static unsigned int uap_fpu_status(void* uap) { union { double as_double; diff --git a/vm/os-linux-x86.32.hpp b/vm/os-linux-x86.32.hpp index 16319086ab..9e08914c32 100644 --- a/vm/os-linux-x86.32.hpp +++ b/vm/os-linux-x86.32.hpp @@ -57,5 +57,4 @@ inline static void uap_clear_fpu_status(void* uap) { #define FUNCTION_CODE_POINTER(ptr) ptr #define FUNCTION_TOC_POINTER(ptr) ptr -#define UAP_STACK_POINTER_TYPE greg_t } diff --git a/vm/os-linux-x86.64.hpp b/vm/os-linux-x86.64.hpp index 614e9420f8..6ec15e7ed9 100644 --- a/vm/os-linux-x86.64.hpp +++ b/vm/os-linux-x86.64.hpp @@ -25,8 +25,6 @@ inline static void uap_clear_fpu_status(void* uap) { #define FUNCTION_CODE_POINTER(ptr) ptr #define FUNCTION_TOC_POINTER(ptr) ptr -#define UAP_STACK_POINTER_TYPE greg_t - /* Must match the leaf-stack-frame-size, signal-handler-stack-frame-size, and stack-frame-size constants in bootstrap/assembler/x86.64.unix.factor */ static const unsigned LEAF_FRAME_SIZE = 16; diff --git a/vm/os-macosx.hpp b/vm/os-macosx.hpp index 30e50ba0a0..6c3d84d168 100644 --- a/vm/os-macosx.hpp +++ b/vm/os-macosx.hpp @@ -11,8 +11,6 @@ const char* default_image_path(); #define UAP_STACK_POINTER(ucontext) (((ucontext_t*)ucontext)->uc_stack.ss_sp) #define UAP_SET_TOC_POINTER(uap, ptr) (void)0 -#define UAP_STACK_POINTER_TYPE void* - #define CODE_TO_FUNCTION_POINTER(code) (void)0 #define CODE_TO_FUNCTION_POINTER_CALLBACK(vm, code) (void)0 #define FUNCTION_CODE_POINTER(ptr) ptr