This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/66697] Feature request: -mstackrealign and force_align_arg_pointer for x86_64
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 05 Oct 2015 09:08:22 +0000
- Subject: [Bug target/66697] Feature request: -mstackrealign and force_align_arg_pointer for x86_64
- Auto-submitted: auto-generated
- References: <bug-66697-4 at http dot gcc dot gnu dot org/bugzilla/>
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.