From 0e7f634b00f904ac29088f3b7fdac0c51999be2d Mon Sep 17 00:00:00 2001 From: GriffinR Date: Tue, 18 Aug 2020 08:11:25 -0400 Subject: Wrap asm statements in NONMATCHING --- src/m4a.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/m4a.c') diff --git a/src/m4a.c b/src/m4a.c index 267a72657..11a4525ea 100644 --- a/src/m4a.c +++ b/src/m4a.c @@ -904,7 +904,9 @@ void CgbModVol(struct CgbChannel *chan) // Force chan->rightVolume and chan->leftVolume to be read from memory again, // even though there is no reason to do so. // The command line option "-fno-gcse" achieves the same result as this. - asm("" : : : "memory"); + #ifndef NONMATCHING + asm("" : : : "memory"); + #endif chan->eg = (u32)(chan->rightVolume + chan->leftVolume) >> 4; if (chan->eg > 15) -- cgit v1.2.3