CMakeLists: disable some optimizations due to buggy codegeneration on SH4 [STB-22242]
CMakeLists: disable some optimizations due to buggy codegeneration on SH4 [STB-22242]

Bug was in QmReader constructor.

Extracted code-snippet triggering the bug:

const unsigned char* ReadQm(const unsigned char* ptr, const unsigned char* end)
{
	const unsigned char* ret = 0;

	while(ptr < end)
	{
		unsigned char tag = *ptr++;
		unsigned len = Read32(ptr);
		ptr += 4;
		if (!tag || !len)
			break;
		if (ptr + len > end)
			break;
		ret = ptr;
		ptr += len;
	}

	return ret;
}

Until GCC 4.9.4 this code compiles normally.
From 5.4.0 to 8.2.0(at least) (ptr += 4) compiles as (ptr += 5).

GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88562

GSGroup/stingraykit,GSGroup/stingraykit