- use regparam for private functions, instead of fastcall
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 1 Apr 2009 00:31:07 +0000 (00:31 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 1 Apr 2009 00:31:07 +0000 (00:31 +0000)
[r25757]

ir/be/ia32/bearch_ia32.c

index 6d87198..ea26d2d 100644 (file)
@@ -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;
                }
        }