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
This commit is contained in:
gregory.hainaut 2010-07-24 21:22:32 +00:00
parent fb034eda2a
commit 4c4cf75432
1 changed files with 1 additions and 1 deletions

View File

@ -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