cc_fixed is dead, all hail stickyness_sticky!
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 21 Aug 2008 10:58:11 +0000 (10:58 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 21 Aug 2008 10:58:11 +0000 (10:58 +0000)
[r21309]

include/libfirm/typerep.h
ir/be/ia32/bearch_ia32.c

index b570565..3e21264 100644 (file)
@@ -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;
 
index 684d51a..83e28f1 100644 (file)
@@ -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;