From: Christoph Mallon Date: Thu, 21 Aug 2008 10:57:35 +0000 (+0000) Subject: cc_fixed is dead, all hail stickyness_sticky! X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=015c0afb4e400c4c5a12f205a2575098a045821e;p=cparser cc_fixed is dead, all hail stickyness_sticky! [r21308] --- diff --git a/ast2firm.c b/ast2firm.c index 7d13325..3a2e220 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -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: