]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix compile issue in VEX/priv/guest_amd64_helpers.c with GCC8 master
authorMark Wielaard <mark@klomp.org>
Sat, 13 Jun 2026 22:01:49 +0000 (00:01 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 13 Jun 2026 22:06:21 +0000 (00:06 +0200)
commit90c6e7d3d732a8b4f28d4632980cf5873e674505
tree51412859e32f4708a16a9230e6baf73a3bdc4578
parente6560a8fc7a27b74726e0ea91cfd4d6c840e7a78
Fix compile issue in VEX/priv/guest_amd64_helpers.c with GCC8

GCC 8.5.0 doesn't like a direct variable declaration after a case
statement.

priv/guest_amd64_helpers.c: In function 'amd64g_dirtyhelper_CPUID_avx2':
priv/guest_amd64_helpers.c:3653:10: error: a label can only be part of a
statement and a declaration is not a statement

Create a block for the case statement to declare the variable.
VEX/priv/guest_amd64_helpers.c