[PATCH] Apply calling conventions to function types

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[PATCH] Apply calling conventions to function types

Charles Davis-3
My last patch allows function types to hold a calling convention. This
patch has Sema actually apply them if a calling-convention attribute is

It also fixes some issues with the last patch:
- Calling conventions are now printed in the TypePrinter.
- The calling convention is now factored into the FoldingSetNode ID.

I'm posting it here because there's something really wrong with it.
Specifically, trying to apply the cdecl calling convention to a function
pointer type fails miserably. Interestingly enough, the function type,
when canonicalized, is not actually canonical.

NOTE: To fully understand what's going on, you might need to look at r93726.


cfe-dev mailing list
[hidden email]

callconv-in-types-2.patch (8K) Download Attachment