Work around a gcc optimisation bug.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6301 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2022-07-28 02:18:11 +00:00
parent 89fde9c5e4
commit cbb18429f1

View file

@ -132,6 +132,9 @@ static void sha2trunc_init (void *context)
hd->count = 0;
}
#if defined(__GNUC__) && (__GNUC__==10)
__attribute__((optimize("no-tree-bit-ccp"))) //gcc (Debian 10.2.1-6) 10.2.1 20210110 miscompiles without this (eg: test webrtc compat with a browser)
#endif
fte_inlinestatic u64
ROTR (u64 x, u64 n)
{