mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
fb034eda2a
commit
4c4cf75432
|
@ -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
|
// And its called enough times to probably merit the extra effort to ensure proper
|
||||||
// optimization. --air
|
// optimization. --air
|
||||||
|
|
||||||
__asm__
|
__asm__ __volatile__
|
||||||
(
|
(
|
||||||
".intel_syntax noprefix\n"
|
".intel_syntax noprefix\n"
|
||||||
"mov eax, %[qwc]\n" // keep a copy of count for looping
|
"mov eax, %[qwc]\n" // keep a copy of count for looping
|
||||||
|
|
Loading…
Reference in New Issue