https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85939
H.J. Lu changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85939
--- Comment #8 from H.J. Lu ---
Created attachment 44197
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44197&action=edit
A patch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85939
--- Comment #7 from Florian Weimer ---
(In reply to H.J. Lu from comment #6)
> I believe __m64 is 4-byte aligned.
https://github.com/hjl-tools/x86-psABI/blob/801352a1470ae8542a3a1f83fb2abda35feab075/low-level-sys-info.tex#L108
says alignment is
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85939
--- Comment #6 from H.J. Lu ---
(In reply to Uroš Bizjak from comment #5)
> (In reply to Florian Weimer from comment #3)
> > (In reply to Uroš Bizjak from comment #1)
> > > Please also use -mincoming-stack-boundary=2 to tell the compiler about
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85939
Uroš Bizjak changed:
What|Removed |Added
CC||hjl.tools at gmail dot com
--- Comment #5
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85939
--- Comment #4 from Florian Weimer ---
Unfortunately, -mincoming-stack-boundary=2 makes -mstackrealign useless because
now any leaf function realigns the stack.
The usual effect (no matter what the documentation says) is that -mstackrealign
pref
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85939
--- Comment #3 from Florian Weimer ---
(In reply to Uroš Bizjak from comment #1)
> Please also use -mincoming-stack-boundary=2 to tell the compiler about
> possible incoming stack (mis)alignment.
This does change the result; alignment is perform
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85939
--- Comment #2 from Uroš Bizjak ---
FYI, -mstackrealign applies only to main ().
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85939
--- Comment #1 from Uroš Bizjak ---
Please also use -mincoming-stack-boundary=2 to tell the compiler about possible
incoming stack (mis)alignment.