aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2018-08-05 12:46:13 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2018-08-05 05:46:13 -0700
commit91539305a849cc8d8e8efb0d98e8c12541992916 (patch)
tree6e9f8447a678e471c58e8c92a8b0d8778966d653 /gcc/rtl.c
parent7ff1e4e9c0527252fd427ee751efad30d391c8be (diff)
downloadgcc-91539305a849cc8d8e8efb0d98e8c12541992916.zip
gcc-91539305a849cc8d8e8efb0d98e8c12541992916.tar.gz
gcc-91539305a849cc8d8e8efb0d98e8c12541992916.tar.bz2
i386: Set cfun->machine->max_used_stack_alignment if needed
cfun->machine->max_used_stack_alignment is used to decide how stack frame should be aligned. This is independent of any psABIs nor 32-bit vs 64-bit. It is always safe to compute max_used_stack_alignment. We compute it only if 128-bit aligned load/store may be generated on misaligned stack slot which will lead to segfault. gcc/ PR target/86386 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Set cfun->machine->max_used_stack_alignment if needed. gcc/testsuite/ PR target/86386 * gcc.target/i386/pr86386.c: New file. From-SVN: r263317
Diffstat (limited to 'gcc/rtl.c')
0 files changed, 0 insertions, 0 deletions