From 2cb75520d4e898d300f0bbff3b2b73536d1b9370 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 1 Apr 2009 00:31:07 +0000 Subject: [PATCH] - use regparam for private functions, instead of fastcall [r25757] --- ir/be/ia32/bearch_ia32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/be/ia32/bearch_ia32.c b/ir/be/ia32/bearch_ia32.c index 6d871981a..ea26d2d8c 100644 --- a/ir/be/ia32/bearch_ia32.c +++ b/ir/be/ia32/bearch_ia32.c @@ -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 calling conventions to register parameter */ - cc = (cc & ~(cc_bits|cc_this_call)) | cc_reg_param; + /* set the regparam calling conventions (allowing up to 3) */ + cc = (cc & ~(cc_bits|cc_this_call)) | cc_reg_param | 3; } } -- 2.20.1