Overview
| Artifact ID: | ced5e002333cb0cd4291a91d267eb47cd2d2fe54 |
|---|---|
| Ticket: | 525746ffffffffffffffffffffffffffffffffff
SEH support under mingw |
| User & Date: | mdejong on 2002-03-09 06:44:12 |
Changes
- icomment:
File Added - 19049: gcc_seh_asm.patch Logged In: YES user_id=90858 I just attached the patch gcc_seh_asm.patch which should get Tcl to compile with gcc. This patch is going to need testing, but I think it will work. As far as _except_handler3 goes, I was under the impression that it was not defined in msvcrt.dll. This nm output of msvcrt.lib seems to support that view. msvcrt.lib:build/intel/dll_obj/wcrtexew.obj: U __except_handler3 msvcrt.lib:build/intel/dll_obj/wcrtexe.obj: U __except_handler3 msvcrt.lib:build/intel/dll_obj/ehvecdtr.obj: U __except_handler3 msvcrt.lib:build/intel/dll_obj/ehveccvb.obj: U __except_handler3 msvcrt.lib:build/intel/dll_obj/ehvecctr.obj: U __except_handler3 msvcrt.lib:build/intel/dll_obj/crtexew.obj: U __except_handler3 msvcrt.lib:build/intel/dll_obj/crtexe.obj: U __except_handler3 Instead VC++ includes this handler in the statically linked runtime library. The inline ASM handlers I wrote would not invoke cleanup handlers farther up on the stack, but I don't think this will be a problem in the guarded calls to alloca() or CloseHandle(). The other two handlers just restart the faulting instruction. To be honest, I am not sure why they do that, it seems unsafe because a NULL pointer deref could send the application into an infinate loop.
- login: "mdejong"
- mimetype: "text/plain"
- username: "mdejong"