search for: exception_execute_handl

Displaying 7 results from an estimated 7 matches for "exception_execute_handl".

2016 Jun 21
2
FLAC__SSE_OS change
Erik de Castro Lopo wrote: > I actually think my change is correct. It should be easier to see if you > look at the github version of the change: > > https://github.com/xiph/flac/commit/e120037f3c67b23fd9eef7ccd04d2df57fa1a9a6#diff-9f048b83ff55071de36263cf0f403b2eL209 > FLAC__NO_SSE_OS was never defined anywhere, so I think that the following changes should be made:
2013 Aug 21
2
PATCH for cpu.c
...285,14 +285,7 @@ # ifdef USE_TRY_CATCH_FLAVOR _try { __asm { -# if _MSC_VER <= 1200 - /* VC6 assembler doesn't know SSE, have to emit bytecode instead */ - _emit 0x0F - _emit 0x57 - _emit 0xC0 -# else xorps xmm0,xmm0 -# endif } } _except(EXCEPTION_EXECUTE_HANDLER) { @@ -307,14 +300,7 @@ /* http://www.codeproject.com/cpp/gccasm.asp */ /* http://www.hick.org/~mmiller/msvc_inline_asm.html */ __asm { -# if _MSC_VER <= 1200 - /* VC6 assembler doesn't know SSE, have to emit bytecode instead */ - _emit 0x0F - _emit 0x57 - _em...
2016 Jun 23
0
FLAC__SSE_OS change
...://github.com/xiph/flac/commit/e120037f3c67b23fd9eef7ccd04d2df57fa1a9a6#diff-9f048b83ff55071de36263cf0f403b2eL209 >> P.P.S. 1) if FLAC__SSE_OS==1 then MSVC cannot compile current cpu.c: "#include <windows.h>" line is inactive and MSVC complains: cpu.c(278): error C2065: 'EXCEPTION_EXECUTE_HANDLER': undeclared identifier cpu.c(279): error C2065: 'STATUS_ILLEGAL_INSTRUCTION': undeclared identifier 2) the current code (simplified): if(info->ia32.sse) { #if !FLAC__SSE_OS /* assume user knows better than us; turn it off */ disable_sse(info); #elif ... #e...
2011 Jun 12
5
[LLVMdev] Is LLVM expressive enough to represent asynchronous exceptions?
...generalized catch as it is a function call that determines how to handle the exception. It is different from llvm.eh.selector (although llvm.eh.selector could be modified to support it.) An example: DWORD filter(int code,int*p) { printf("code: %x, p: %x\n",code,p); *p = 10; return EXCEPTION_EXECUTE_HANDLER; } void whatever() { int p = 5; __try { printf("p: %d\n",p); p /= 0; // SEH printf("unreachable\n"); } __except( filter(GetExceptionCode(),&p) ) { printf("p: %d\n",p); } } The output of calling whatever() is:...
2016 Jun 25
2
FLAC__SSE_OS change
lvqcl wrote: > 1) if FLAC__SSE_OS==1 then MSVC cannot compile current cpu.c: > "#include <windows.h>" line is inactive and MSVC complains: > cpu.c(278): error C2065: 'EXCEPTION_EXECUTE_HANDLER': undeclared identifier > cpu.c(279): error C2065: 'STATUS_ILLEGAL_INSTRUCTION': undeclared identifier > > 2) the current code (simplified): > > if(info->ia32.sse) { > #if !FLAC__SSE_OS > /* assume user knows better than us; turn it off */ >...
2011 Jun 12
0
[LLVMdev] Is LLVM expressive enough to represent asynchronous exceptions?
...t determines how to handle the exception. It is > different from llvm.eh.selector (although llvm.eh.selector could be > modified to support it.) > > An example: > > DWORD filter(int code,int*p) { > printf("code: %x, p: %x\n",code,p); > *p = 10; > return EXCEPTION_EXECUTE_HANDLER; > } > > void whatever() { > int p = 5; > __try { > printf("p: %d\n",p); > p /= 0; // SEH > printf("unreachable\n"); > } > __except( filter(GetExceptionCode(),&p) ) { > printf("p:...
2014 Dec 19
5
[LLVMdev] Windows EH support
Hi Reid, I'm trying to get a "big picture" view of everything that needs to be done for clang and llvm to support SEH and C++ exception handling for the "msvc" environment. I've put together a list, including work in progress, but I'm guessing that I've missed some details. Can you look this over and tell me if it matches your idea of what needs to be done?