So gcc offers:
__attribute__((stdcall))
__attribute__((cdecl))
__attribute__((fastcall))

but you're supposed to also handle not only the calling convention but the naming convention. gcc doesn't do this, why? is there a way to do it?