[PATCH] Fix compilation with MinGW-w64 GCC 4.8.2 64-bit SEH

Yaron Keren yaron.keren at gmail.com
Tue Dec 10 23:17:06 PST 2013


This is right, MingW SEH does not have these functions.

See also this discussion:

http://clang-developers.42468.n3.nabble.com/clang-3-3-does-not-build-with-gcc-4-8-with-Windows-SEH-exception-td4032754.html



2013/12/11 Jonathan Liu <net147 at gmail.com>

> Hi #llvm,
>
> There are no __register_frame and __deregister_frame functions when using
> structured exception handling.
>
> http://llvm-reviews.chandlerc.com/D2378
>
> Files:
>   lib/ExecutionEngine/RTDyldMemoryManager.cpp
>
> Index: lib/ExecutionEngine/RTDyldMemoryManager.cpp
> ===================================================================
> --- lib/ExecutionEngine/RTDyldMemoryManager.cpp
> +++ lib/ExecutionEngine/RTDyldMemoryManager.cpp
> @@ -34,7 +34,7 @@
>
>  // Determine whether we can register EH tables.
>  #if (defined(__GNUC__) && !defined(__ARM_EABI__) && !defined(__ia64__) &&
> \
> -     !defined(__USING_SJLJ_EXCEPTIONS__))
> +     !defined(__SEH__) && !defined(__USING_SJLJ_EXCEPTIONS__))
>  #define HAVE_EHTABLE_SUPPORT 1
>  #else
>  #define HAVE_EHTABLE_SUPPORT 0
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131211/d0fdfb1e/attachment.html>


More information about the llvm-commits mailing list