[LLVMdev] Compiling via bitcode on Windows

Reid Kleckner rnk at google.com
Mon Feb 2 11:35:22 PST 2015


On Mon, Feb 2, 2015 at 11:32 AM, Russell Wallace <russell.wallace at gmail.com>
wrote:

> On Mon, Feb 2, 2015 at 5:59 PM, Reid Kleckner <rnk at google.com> wrote:
>
>> The references to _Unwind_Resume and __gxx_personality_v0 are surprising,
>> but the rest make sense to me. If you don't need any EH, just pass
>> -fno-exceptions to fix the issue. For more info, read on. :)
>>
>
> That fixed it, thanks!
>
>
>> clang-cl currently turns on -fexceptions and not -fcxx-exceptions, while
>> clang will enable both by default. Long term, to implement the semantics of
>> MSVC's /EHs, we want to disable C++ dtor cleanups while leaving SEH (__try
>> / __except) enabled.
>>
>
> And in the even longer term, implement the /EHsc option?
>

Yes. Strangely enough, our current IR generation is doing something like
/EHa, which is not a priority. =/ Should be fixed soon.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150202/6ff1de81/attachment.html>


More information about the llvm-dev mailing list