Skip to content
Snippets Groups Projects
Commit c40d312c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard
Browse files

include: Use inline assembly on Clang MSVC mode in exception helpers.

parent 8a2cc55b
No related branches found
No related tags found
No related merge requests found
......@@ -251,7 +251,7 @@ typedef struct __tagWINE_FRAME
static inline EXCEPTION_REGISTRATION_RECORD *__wine_push_frame( EXCEPTION_REGISTRATION_RECORD *frame )
{
#if defined(__GNUC__) && defined(__i386__)
#if (defined(__GNUC__) || defined(__clang__)) && defined(__i386__)
EXCEPTION_REGISTRATION_RECORD *prev;
__asm__ __volatile__("movl %%fs:0,%0"
"\n\tmovl %0,(%1)"
......@@ -268,7 +268,7 @@ static inline EXCEPTION_REGISTRATION_RECORD *__wine_push_frame( EXCEPTION_REGIST
static inline EXCEPTION_REGISTRATION_RECORD *__wine_pop_frame( EXCEPTION_REGISTRATION_RECORD *frame )
{
#if defined(__GNUC__) && defined(__i386__)
#if (defined(__GNUC__) || defined(__clang__)) && defined(__i386__)
__asm__ __volatile__("movl %0,%%fs:0"
: : "r" (frame->Prev) : "memory" );
return frame->Prev;
......@@ -282,7 +282,7 @@ static inline EXCEPTION_REGISTRATION_RECORD *__wine_pop_frame( EXCEPTION_REGISTR
static inline EXCEPTION_REGISTRATION_RECORD *__wine_get_frame(void)
{
#if defined(__GNUC__) && defined(__i386__)
#if (defined(__GNUC__) || defined(__clang__)) && defined(__i386__)
EXCEPTION_REGISTRATION_RECORD *ret;
__asm__ __volatile__("movl %%fs:0,%0" : "=r" (ret) );
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment