From cbb907a3539c303b35bcdf52df67f3340429d0c3 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Thu, 10 Aug 2006 04:13:05 +0000 Subject: [PATCH] Remove jmpsize_threshold added in new-optimizer; it's not actually used. svn path=/trunk/yasm/; revision=1599 --- libyasm/arch.h | 8 -------- modules/arch/x86/x86arch.c | 1 - 2 files changed, 9 deletions(-) diff --git a/libyasm/arch.h b/libyasm/arch.h index 99cc93fc..0d94c7b2 100644 --- a/libyasm/arch.h +++ b/libyasm/arch.h @@ -234,12 +234,6 @@ typedef struct yasm_arch_module { */ unsigned int wordsize; - /** Long/short jump size descriminator. Number of bytes (+/-) a short - * jump can range over. Used to size optimization FIFOs, so don't - * make this extremely large (e.g. >1000). - */ - const unsigned long jmpsize_threshold; - /** Worst case minimum instruction length in bytes. * Call yasm_arch_min_insn_len() to get the minimum instruction length of * a particular #yasm_arch. @@ -526,8 +520,6 @@ yasm_effaddr *yasm_arch_ea_create(yasm_arch *arch, /*@keep@*/ yasm_expr *e); (((yasm_arch_base *)arch)->module->keyword) #define yasm_arch_wordsize(arch) \ (((yasm_arch_base *)arch)->module->wordsize) -#define yasm_arch_jmpsize_threshold(arch) \ - (((yasm_arch_base *)arch)->module->jmpsize_threshold) #define yasm_arch_min_insn_len(arch) \ (((yasm_arch_base *)arch)->module->min_insn_len) diff --git a/modules/arch/x86/x86arch.c b/modules/arch/x86/x86arch.c index 0089b615..39223855 100644 --- a/modules/arch/x86/x86arch.c +++ b/modules/arch/x86/x86arch.c @@ -462,6 +462,5 @@ yasm_arch_module yasm_x86_LTX_arch = { x86_machines, "x86", 16, - 128, 1 }; -- 2.40.0