https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66697
--- Comment #5 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Justas L from comment #4) > I haven't tested this yet, but I understand this global solution would > affect the performance of ALL functions, not only those that interface with > outside code, correct? Yes, but you can always move critical functions to a separate file and compile them with special options. > Wine already assigns the force_align_arg_pointer attribute to vulnerable > functions, so making it work for x86_64 would be the better, less disruptive > solution. TBH, I really don't see the reason against force_align_arg_pointer support on x86_64. I have a patch in testing that enables this attribute also for x86_64 targets.