thiscall on MSVC

There doesn't appear to be a calling convention matching "thiscall"... on
gcc targets, the standard calling convention is fine (just pass "this" as
the first parameter), but with MSVC this won't work because it passes "this"
in %ECX.

Is there a workaround for this? Or how hard would it be to add a separate
"thiscall" convention which maps to "ccc" on GCC-like targets and the custom
MSVC target on MSVC-x86?

- --BDS

- --

Benjamin Smedberg
Platform Guru
Mozilla Corporation
benjamin@smedbergs.us
http://benjamin.smedbergs.us/