From 4c4cf7543224067b1c2080569d14e7e752114a1a Mon Sep 17 00:00:00 2001 From: "gregory.hainaut" Date: Sat, 24 Jul 2010 21:22:32 +0000 Subject: [PATCH] Memcpy (linux): Use volatile constraint to avoid complete removal of the function when activating -fdce (dead code elimination). Actually there is no impact for the moment because the optimization is not activate by default. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3562 96395faa-99c1-11dd-bbfe-3dabce05a288 --- common/src/Utilities/x86/MemcpyVibes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/Utilities/x86/MemcpyVibes.cpp b/common/src/Utilities/x86/MemcpyVibes.cpp index b154cd2847..3ff810579a 100644 --- a/common/src/Utilities/x86/MemcpyVibes.cpp +++ b/common/src/Utilities/x86/MemcpyVibes.cpp @@ -180,7 +180,7 @@ __forceinline void memcpy_vibes(void * dest, const void * src, int size) { // And its called enough times to probably merit the extra effort to ensure proper // optimization. --air - __asm__ + __asm__ __volatile__ ( ".intel_syntax noprefix\n" "mov eax, %[qwc]\n" // keep a copy of count for looping