From: Michael Beck Date: Wed, 1 Apr 2009 00:31:07 +0000 (+0000) Subject: - use regparam for private functions, instead of fastcall X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=2cb75520d4e898d300f0bbff3b2b73536d1b9370;p=libfirm - use regparam for private functions, instead of fastcall [r25757] --- 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; } }