On Jul 11, 2012, at 5:34 AM, Timur Iskhodzhanov wrote:
> With the attached patch the cdecl test passes now.
> 
> However, I'm not very sure what I'm doing here and why it doesn't work
> in the first place - can you please take a look?

Hmm.  The problem here is that getCanonicalCallConv is turning CC_C
into CC_Default.  That needs to be disabled in Microsoft mode, just like
it apparently is in MRTD mode.

...also, the way that MRTD mode is implemented is wrong, and we should
be handling this in IR-generation the same that we're handling the
thiscall rules.

John.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to