i386: Update preferred stack boundary for leaf functions
authorH.J. Lu <hongjiu.lu@intel.com>
Sun, 17 Sep 2017 21:11:04 +0000 (21:11 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sun, 17 Sep 2017 21:11:04 +0000 (14:11 -0700)
commit01f44e44faf37fc34775b9e28e46d1c9243b247d
tree4753999119bb079225243f730344aa0c7dddd2be
parent62d3c075d52f1b92481bd0cdb9b0ef242210f512
i386: Update preferred stack boundary for leaf functions

preferred_stack_boundary may not be the minimum stack alignment.  For
leaf functions without TLS access, max_used_stack_slot_alignment may be
smaller.  We should update preferred_stack_boundary for leaf functions.

gcc/

PR target/82166
* config/i386/i386.c (ix86_finalize_stack_frame_flags): Properly
compute the minimum stack alignment.  Also update preferred stack
boundary for leaf functions.

gcc/testsuite/

PR target/82166
* gcc.target/i386/pr82166.c: New test.

From-SVN: r252895
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr82166.c [new file with mode: 0644]