diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-26 12:51:07 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-01-27 12:19:58 -0800 |
commit | 3c93d02be1e4b41d9116da6262cf083a65439280 (patch) | |
tree | 167d2bcc06f261dcb1f64d55bc2b6a73cedb4fbc /libgfortran/ieee | |
parent | 7197f3f8753ab4277784fe78a1590204bcf67901 (diff) | |
download | gcc-hjl/pr68986/gcc-5-branch.tar.gz |
Update preferred stack boundary in ix86_update_stack_boundaryhjl/pr68986/gcc-5-branch
__tls_get_addr must be called with 16-byte aligned stack, which is
guaranted by setting preferred_stack_boundary to 128 bits. Preferred
stack boundary adjustment for __tls_get_addr should be done in
ix86_update_stack_boundary, not ix86_compute_frame_layout Also
there is no need to over-align stack for __tls_get_addr and function
with __tls_get_addr call isn't a leaf function.
gcc/
Backport from mainline
PR target/68986
* config/i386/i386.c (ix86_compute_frame_layout): Move stack
alignment adjustment to ...
(ix86_update_stack_boundary): Here. Don't over-align stack nor
change stack_alignment_needed for __tls_get_addr.
(ix86_finalize_stack_realign_flags): Use stack_alignment_needed
if __tls_get_addr is called.
gcc/testsuite/
Backport from mainline
PR target/68986
* gcc.target/i386/pr68986-1.c: New test.
* gcc.target/i386/pr68986-2.c: Likewise.
* gcc.target/i386/pr68986-3.c: Likewise.
Diffstat (limited to 'libgfortran/ieee')
0 files changed, 0 insertions, 0 deletions