disas/libvixl: Fix fall-through annotation for GCC >= 7
commit4f02d49a80fdb3c5898dd32b5879289425ee158f
authorThomas Huth <thuth@redhat.com>
Fri, 11 Dec 2020 15:24:15 +0000 (11 16:24 +0100)
committerThomas Huth <thuth@redhat.com>
Fri, 18 Dec 2020 08:14:22 +0000 (18 09:14 +0100)
treec05afe2312a77fda93681f61bc21f8fbd232866d
parent75ee62ac606bfc9eb59310b9446df3434bf6e8c2
disas/libvixl: Fix fall-through annotation for GCC >= 7

For compiling with -Wimplicit-fallthrough we need to fix the
fallthrough annotations in the libvixl code. This is based on
the following upstream vixl commit by Martyn Capewell:

 https://git.linaro.org/arm/vixl.git/commit/?id=de326f850f736c3a337

 "GCC 7 enables switch/case fallthrough checking, but this fails in
  VIXL, because the annotation we use is Clang specific.

  Also, fix a missing annotation in the disassembler."

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20201211152426.350966-2-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
disas/libvixl/vixl/a64/disasm-a64.cc
disas/libvixl/vixl/globals.h