Integrate MinGW build with DWARF2 exception handling.

Only works with DWARF2-enabled GCC 4.x (not the default MinGW GCC).
Fix fastcall symbol names for COFF assembler output.
Add DWARF2 unwind info to COFF assembler output.
Use COFF assembler mode for MinGW builds.
Always enable the DWARF2 handler if compiled with GCC.
This commit is contained in:
Mike Pall
2010-01-22 01:56:49 +01:00
parent c56811bb7a
commit 43f1e13470
7 changed files with 216 additions and 31 deletions

View File

@@ -63,7 +63,7 @@
** EXT is mandatory on POSIX/x64 since the interpreter doesn't save r12/r13.
*/
#if defined(__ELF__) || defined(__MACH__)
#if defined(__GNUC__)
#if LJ_TARGET_X86
#ifdef LUAJIT_UNWIND_EXTERNAL
#define LJ_UNWIND_EXT 1
@@ -532,7 +532,7 @@ static void *err_unwind(lua_State *L, void *stopcf, int errcode)
/* -- External frame unwinding -------------------------------------------- */
#if defined(__ELF__) || defined(__MACH__)
#if defined(__GNUC__)
#include <unwind.h>