https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70341
--- Comment #10 from Fredrik Hederstierna <fredrik.hederstie...@securitas-direct.com> --- Can it be related to some missing code hoisting in eg. combiner or gcse? I found this old PR 11832 on similar issue, can it be related, or have a common solution? Bug 11832 - Optimization of common stores in switch statements https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11832 BR/Fredrik