From 02b3afb732bdfb053e36f5a5ddbf7de53254930d Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Thu, 21 Aug 2008 10:58:11 +0000 Subject: [PATCH] cc_fixed is dead, all hail stickyness_sticky! [r21309] --- include/libfirm/typerep.h | 1 - ir/be/ia32/bearch_ia32.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/libfirm/typerep.h b/include/libfirm/typerep.h index b57056583..3e212645f 100644 --- a/include/libfirm/typerep.h +++ b/include/libfirm/typerep.h @@ -1976,7 +1976,6 @@ typedef enum { cc_frame_on_caller_stk = 0x20000000, /**< The method did not allocate an own stack frame, instead the caller must reserve size on its own stack. */ cc_fpreg_param = 0x40000000, /**< Transmit floating point parameters in registers, else the stack is used. */ - cc_fixed = (int)0x80000000, /**< The calling convention must not be changed later on */ cc_bits = (0xFF << 24)/**< The calling convention bits. */ } calling_convention; diff --git a/ir/be/ia32/bearch_ia32.c b/ir/be/ia32/bearch_ia32.c index 684d51a1b..83e28f125 100644 --- a/ir/be/ia32/bearch_ia32.c +++ b/ir/be/ia32/bearch_ia32.c @@ -1877,8 +1877,7 @@ static void ia32_get_call_abi(const void *self, ir_type *method_type, cc = cc_cdecl_set; } else { cc = get_method_calling_convention(method_type); - if (!(cc & cc_fixed) && - get_method_additional_properties(method_type) & mtp_property_private && + 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_reg_param; -- 2.20.1