aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2017-08-07 11:49:10 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2017-08-07 04:49:10 -0700
commit079a03638c5c38918f608c496ca1032a9ddc26c9 (patch)
tree8789d79f13ef45850fab00accf16b4d49977cbf9 /gcc/final.c
parent356512c0660a1f549c48128ab63cc56077d05db2 (diff)
downloadgcc-079a03638c5c38918f608c496ca1032a9ddc26c9.zip
gcc-079a03638c5c38918f608c496ca1032a9ddc26c9.tar.gz
gcc-079a03638c5c38918f608c496ca1032a9ddc26c9.tar.bz2
i386: Don't use frame pointer without stack access
When there is no stack access, there is no need to use frame pointer even if -fno-omit-frame-pointer is used. gcc/ PR target/81736 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed to ... (ix86_finalize_stack_frame_flags): This. Also clear frame_pointer_needed if -fno-omit-frame-pointer is used without stack access. (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags with ix86_finalize_stack_frame_flags. (ix86_expand_epilogue): Likewise. (ix86_expand_split_stack_prologue): Likewise. gcc/testsuite/ PR target/81736 * gcc.target/i386/pr81736-1.c: New test. * gcc.target/i386/pr81736-2.c: Likewise. * gcc.target/i386/pr81736-3.c: Likewise. * gcc.target/i386/pr81736-4.c: Likewise. From-SVN: r250916
Diffstat (limited to 'gcc/final.c')
0 files changed, 0 insertions, 0 deletions