diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2017-11-08 15:34:36 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco@gcc.gnu.org> | 2017-11-08 15:34:36 +0000 |
commit | 7040939b9e2cbd084e6dbe015ee6cd2761aacf46 (patch) | |
tree | c7a02a8d9d4ea3d223427b71d56ca73e56370c5a /gcc/config/tilegx | |
parent | 7cc7f3aa68b852b217c511e7d841458b0bdd532a (diff) | |
download | gcc-7040939b9e2cbd084e6dbe015ee6cd2761aacf46.zip gcc-7040939b9e2cbd084e6dbe015ee6cd2761aacf46.tar.gz gcc-7040939b9e2cbd084e6dbe015ee6cd2761aacf46.tar.bz2 |
[AArch64] Remove aarch64_frame_pointer_required
To implement -fomit-leaf-frame-pointer, there are 2 places where we need
to check whether we have to use a frame chain (since register allocation
may allocate LR in a leaf function that omits the frame pointer, but if
LR is spilled we must emit a frame chain). To simplify this do not force
frame_pointer_needed via aarch64_frame_pointer_required, but enable the
frame chain in aarch64_layout_frame. Now aarch64_frame_pointer_required
can be removed and aarch64_can_eliminate is simplified.
gcc/
* config/aarch64/aarch64.c (aarch64_frame_pointer_required)
Remove.
(aarch64_layout_frame): Initialise emit_frame_chain.
(aarch64_can_eliminate): Remove omit leaf frame pointer code.
(TARGET_FRAME_POINTER_REQUIRED): Remove define.
testsuite/
* gcc.target/aarch64/dwarf-cfa-reg.c: Update.
From-SVN: r254533
Diffstat (limited to 'gcc/config/tilegx')
0 files changed, 0 insertions, 0 deletions