https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67716
--- Comment #9 from Kazumoto Kojima <kkojima at gcc dot gnu.org> --- Created attachment 36395 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36395&action=edit reduced test case This one fails with the same asm error with my sh-elf c++ for -g -O1. It looks that #pragma GCC optimize("no-aggressive-loop-optimizations") causes unaligned insn after jump table data: .align 2 .L4: .byte .L3-.L5 .byte .L2-.L5 .byte .L2-.L5 .byte .L2-.L5 .byte .L6-.L5 .byte .L2-.L5 .byte .L6-.L5 .byte .L2-.L5 .byte .L2-.L5 .byte .L2-.L5 .byte .L7-.L5 .L3: mov.l .L16,r1 <<<- not aligned!