https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111278
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- do_ld_mmio_beN (and do_st_mmio_leN) are not declared as always_inline so it does not need to be inlined and then the switch there will not be optimized away. Also do_ld_mmio_beN really requires full optimization to optimize out that switch too.