[PATCH] [-cxx-abi microsoft] Mangle user defined entry points properly

David Majnemer david.majnemer at gmail.com
Fri Sep 13 11:57:54 PDT 2013

They should not have extern "C" implicitly set. Doing so raises the
following diagnostic when they mix with other declarations:
linkage specification contradicts earlier specification for 'DllMain'

On Fri, Sep 13, 2013 at 11:00 AM, Reid Kleckner <rnk at google.com> wrote:

>   There's one outstanding issue here, which is that now we generate
> invalid obj files if you overload one of these guys.  =/
>   IMO we should have an equivalent of CheckMain which marks them all
> implicitly extern "C", and then let other machinery take care of the rest.
> http://llvm-reviews.chandlerc.com/D1670
>   http://llvm-reviews.chandlerc.com/rL190675
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130913/1ec5f54b/attachment.html>

More information about the cfe-commits mailing list