https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85063
--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> --- Created attachment 43751 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43751&action=edit Tentative patch that doesn't disable the switch conversion optimization (In reply to Jakub Jelinek from comment #3) > So just make it a file scope static var instead, instead of disabling the > optimization? This patch enables the optimization (without changing the scope of the var).