https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104816
--- Comment #4 from Andrew Cooper <andrew.cooper3 at citrix dot com> --- I've worked around this in Xen with: https://xenbits.xen.org/gitweb/?p=xen.git;a=commitdiff;h=9d4a44380d273de22d5753883cbf5581795ff24d and https://lore.kernel.org/lkml/yixpv0q88paph...@hirez.programming.kicks-ass.net/ is pending for Linux. IMO, it's an error that -fcf-protection=branch is not obeyed for jump tables, and we don't want to end up in a situation where jump tables are unusable with CET.