https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91528
--- Comment #5 from Uroš Bizjak <ubizjak at gmail dot com> --- Created attachment 46753 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46753&action=edit Conditionally generate DRAP reg for realigned stack This should be the correct patch, we call targetm.calls.get_drap_rtx only when crtl->drap_reg is null (get_drap_rtx also emits DRAP initialization sequence). Richi, can you please put the patch through your testing with forced STV on -march=westmere? I'm bootstrapping with the patch, but this means little with generic bootstrap.