[Bug target/85939] -mstackrealign does not realign stack with local __m64 variable

2018-05-28 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85939 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/85939] -mstackrealign does not realign stack with local __m64 variable

2018-05-28 Thread hjl.tools at gmail dot com
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

[Bug target/85939] -mstackrealign does not realign stack with local __m64 variable

2018-05-27 Thread fw at gcc dot gnu.org
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

[Bug target/85939] -mstackrealign does not realign stack with local __m64 variable

2018-05-27 Thread hjl.tools at gmail dot com
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 >

[Bug target/85939] -mstackrealign does not realign stack with local __m64 variable

2018-05-27 Thread ubizjak at gmail dot com
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

[Bug target/85939] -mstackrealign does not realign stack with local __m64 variable

2018-05-27 Thread fw at gcc dot gnu.org
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

[Bug target/85939] -mstackrealign does not realign stack with local __m64 variable

2018-05-27 Thread fw at gcc dot gnu.org
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

[Bug target/85939] -mstackrealign does not realign stack with local __m64 variable

2018-05-27 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85939 --- Comment #2 from Uroš Bizjak --- FYI, -mstackrealign applies only to main ().

[Bug target/85939] -mstackrealign does not realign stack with local __m64 variable

2018-05-27 Thread ubizjak at gmail dot com
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.