synchronized with edgcpfe: enabled combo by default
[cparser] / ast2firm.c
index 7d13325..3a2e220 100644 (file)
@@ -384,28 +384,25 @@ static ir_type *create_method_type(const function_type_t *function_type)
 
        unsigned cc = get_method_calling_convention(irtype);
        switch (function_type->calling_convention) {
-       case CC_DEFAULT: /* unspecified calling convention, equal to one of the other, typical cdecl */
+       case CC_DEFAULT: /* unspecified calling convention, equal to one of the other, typically cdecl */
+       case CC_CDECL:
 is_cdecl:
                set_method_calling_convention(irtype, SET_CDECL(cc));
                break;
 
-       case CC_CDECL:
-               set_method_calling_convention(irtype, cc_fixed | SET_CDECL(cc));
-               break;
-
        case CC_STDCALL:
                if (function_type->variadic || function_type->unspecified_parameters)
                        goto is_cdecl;
 
                /* only non-variadic function can use stdcall, else use cdecl */
-               set_method_calling_convention(irtype, cc_fixed | SET_STDCALL(cc));
+               set_method_calling_convention(irtype, SET_STDCALL(cc));
                break;
 
        case CC_FASTCALL:
                if (function_type->variadic || function_type->unspecified_parameters)
                        goto is_cdecl;
                /* only non-variadic function can use fastcall, else use cdecl */
-               set_method_calling_convention(irtype, cc_fixed | SET_FASTCALL(cc));
+               set_method_calling_convention(irtype, SET_FASTCALL(cc));
                break;
 
        case CC_THISCALL: