https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48227
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |8.0 See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=81616 --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- /* X86_TUNE_PAD_RETURNS: Place NOP before every RET that is a destination of conditional jump or directly preceded by other jump instruction. This is important for AND K8-AMDFAM10 because the branch prediction architecture expect at most one jump per 2 byte window. Failing to pad returns leads to misaligned return stack. */ DEF_TUNE (X86_TUNE_PAD_RETURNS, "pad_returns", m_ATHLON_K8 | m_AMDFAM10) Core2 issue was Fixed by r0-125351 for 4.9.0. GCC 8 removed it even for generic by r8-5077. So all fixed.