aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/go-now.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2018-01-10 15:37:49 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2018-01-10 07:37:49 -0800
commitcd3410cc7b57fe3745f0fe764f5c322e0265ea1a (patch)
treed9cd7bd70788dd6f5be507a805dca0f462a6563d /libgo/runtime/go-now.c
parent447fb74d97f0fecbfe363cda7760df231e9b4c27 (diff)
downloadgcc-cd3410cc7b57fe3745f0fe764f5c322e0265ea1a.zip
gcc-cd3410cc7b57fe3745f0fe764f5c322e0265ea1a.tar.gz
gcc-cd3410cc7b57fe3745f0fe764f5c322e0265ea1a.tar.bz2
i386: Also adjust stack frame for stack slot alignment
We should also adjust stack_realign_offset for the largest alignment of stack slot actually used when stack realignment isn't needed. This is required to keep stack frame properly aligned to satisfy the largest alignment of stack slots. Tested on Linux/i686 and Linux/x86-64. gcc/ PR target/83735 * config/i386/i386.c (ix86_compute_frame_layout): Always adjust stack_realign_offset for the largest alignment of stack slot actually used. (ix86_find_max_used_stack_alignment): New function. (ix86_finalize_stack_frame_flags): Use it. Set max_used_stack_alignment if we don't realign stack. * config/i386/i386.h (machine_function): Add max_used_stack_alignment. gcc/testsuite/ PR target/83735 * gcc.target/i386/pr83735.c: New test. From-SVN: r256436
Diffstat (limited to 'libgo/runtime/go-now.c')
0 files changed, 0 insertions, 0 deletions