From 4b29a317121bcb00d0b73b8fccaee9f496620f0a Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 8 Apr 2009 23:05:55 +0000 Subject: [PATCH] - use FASTCALL, not only regparam on private functions [r25820] --- ir/be/ia32/bearch_ia32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ir/be/ia32/bearch_ia32.c b/ir/be/ia32/bearch_ia32.c index ea26d2d8c..192dc6b60 100644 --- a/ir/be/ia32/bearch_ia32.c +++ b/ir/be/ia32/bearch_ia32.c @@ -1834,7 +1834,7 @@ static void ia32_get_call_abi(const void *self, ir_type *method_type, call_flags.bits.store_args_sequential = 0; /* call_flags.bits.try_omit_fp not changed: can handle both settings */ call_flags.bits.fp_free = 0; /* the frame pointer is fixed in IA32 */ - call_flags.bits.call_has_imm = 0; /* No call immediates, we handle this by ourselves */ + call_flags.bits.call_has_imm = 0; /* No call immediate, we handle this by ourselves */ /* set parameter passing style */ be_abi_call_set_flags(abi, call_flags, &ia32_abi_callbacks); @@ -1846,8 +1846,8 @@ static void ia32_get_call_abi(const void *self, ir_type *method_type, } else { if (get_method_additional_properties(method_type) & mtp_property_private && ia32_cg_config.optimize_cc) { - /* set the regparam calling conventions (allowing up to 3) */ - cc = (cc & ~(cc_bits|cc_this_call)) | cc_reg_param | 3; + /* set the fast calling conventions (allowing up to 3) */ + cc = SET_FASTCALL(cc) | 3; } } -- 2.20.1