Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Make Clang output SEH exception code for x86_64-w64-mingw32 #18653

Open Quuxplusone opened 10 years ago

Quuxplusone commented 10 years ago
Bugzilla Link PR18654
Status NEW
Importance P normal
Reported by vanboxem.ruben@gmail.com
Reported on 2014-01-29 02:55:46 -0800
Last modified on 2014-09-23 10:43:50 -0700
Version trunk
Hardware PC Windows NT
CC llvm-bugs@lists.llvm.org, marci_r@web.de
Fixed by commit(s)
Attachments win64-seh.patch.txt (6929 bytes, text/plain)
Blocks
Blocked by PR18546
See also
Created attachment 11970
SEH codegen/driver patch

For x64, Kai Nacke, aka redstar, has been working on SEH in LLVM.

With his WIP patch (see e.g. http://lists.cs.uiuc.edu/pipermail/llvm-
commits/Week-of-Mon-20140106/200863.html), and my MinGW Driver code (see
http://llvm.org/bugs/show_bug.cgi?id=18546), and attached modifications for the
CG/Driver/Frontend, the necessary changes are done to generate calls to the seh
gcc personality functions. Basic testing (hello world throw-catch) works with
GCC 4.8.2's libraries.
Quuxplusone commented 10 years ago

Attached win64-seh.patch.txt (6929 bytes, text/plain): SEH codegen/driver patch

Quuxplusone commented 10 years ago

Scratch that. 64-bit eh does not work with this patch. seh stuff is emitted though.