type_t *type = allocate_type_zero(TYPE_FUNCTION);
function_type_t *ftype = &type->function;
- ftype->linkage = current_linkage;
-
-#if 0
- switch (modifiers & (DM_CDECL | DM_STDCALL | DM_FASTCALL | DM_THISCALL)) {
- case DM_NONE: break;
- case DM_CDECL: ftype->calling_convention = CC_CDECL; break;
- case DM_STDCALL: ftype->calling_convention = CC_STDCALL; break;
- case DM_FASTCALL: ftype->calling_convention = CC_FASTCALL; break;
- case DM_THISCALL: ftype->calling_convention = CC_THISCALL; break;
-
- default:
- errorf(HERE, "multiple calling conventions in declaration");
- break;
- }
-#endif
+ ftype->linkage = current_linkage;
+ ftype->calling_convention = CC_CDECL;
parse_parameters(ftype, scope);
if (func1->linkage != func2->linkage)
return false;
- /* this would make alot of sense, but gcc doesn't seem to do this */
-#if 0
if (func1->calling_convention != func2->calling_convention)
return false;
-#endif
/* can parameters be compared? */
if (func1->unspecified_parameters || func2->unspecified_parameters)