From 2e22e56b48b3440b2df843e1e7b645cc85a1eec4 Mon Sep 17 00:00:00 2001 From: "sudonim1@gmail.com" Date: Fri, 6 Apr 2012 18:41:20 +0000 Subject: [PATCH] Fixed PGO builds, MSVC does not like inline asm for function calls. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5146 96395faa-99c1-11dd-bbfe-3dabce05a288 --- common/include/x86emitter/x86emitter.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/include/x86emitter/x86emitter.h b/common/include/x86emitter/x86emitter.h index cf09e8acd1..2de3d3a88e 100644 --- a/common/include/x86emitter/x86emitter.h +++ b/common/include/x86emitter/x86emitter.h @@ -57,8 +57,10 @@ // insisting on "mov eax, immaddr; call eax". Likewise, GCC fails to optimize it also, unless // the typecast is explicitly inlined. These macros account for these problems. // +// But it turns out that MSVC is quite capable of optimising important code out of existance +// if we use these macros in our PGO builds, so it's better just to live with the inefficient call. -#ifdef _MSC_VER +#ifdef _MSC_HAS_FIXED_INLINE_ASM_PGO # define CallAddress( ptr ) \ __asm{ call offset ptr }