Possible bug with MCJIT EH on Windows x86 with MinGW

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Possible bug with MCJIT EH on Windows x86 with MinGW

DeadMG
Hello everyone,

I've got a test case in my frontend which produces an unexpected result (libstdc++'s EH routines terminate the program after throwing). Reading the IR, I've been unable to determine the source of the problem.

When executing on Linux, there's no problem. When using MCJIT on Windows x86 linking in MinGW 4.6.3 libstdc++'s EH routines, the program terminates when the exception is thrown. In both cases, __cxa_throw is invoked straight to a landing pad that catches the exact same RTTI that was used to throw it.

The reason I think this may be an LLVM bug is that I've reduced the test case a bit and removing some dead code causes the IR to pass. I've diffed the two IRs and the difference is about six lines that seem to be trivially obviously correct.

Any insight into this matter would be appreciated.

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

fail.llc (5K) Download Attachment
pass.llc (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Possible bug with MCJIT EH on Windows x86 with MinGW

Óscar Fuentes

[snip]

Please submit bug reports to the LLVM Bugzilla system (available from
the LLVM home page.) Otherwise it is quite likely that your message will
be forgotten/unnoticed by the developers.

Thanks.
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev