Support using multiple registers to hold the frame pointer

Programming / Compilers / GCC - kcy [138bc75d-0d04-0410-961f-82ee72b054a4] - 7 November 2019 00:07 EST

When multiple hard registers are required to hold the frame pointer, ensure that the registers after the first are marked as non-allocatable, live and eliminable as well.

2019-11-07 Kwok Cheung Yeung

gcc/
- ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for frame pointer in multiple registers. (ira_setup_eliminable_regset): Setup eliminable_regset, ira_no_alloc_regs and regs_ever_live for frame pointer in multiple registers.

52e907c21b9 Support using multiple registers to hold the frame pointer
gcc/ChangeLog | 8 ++++++++
gcc/ira.c | 33 ++++++++++++++++++++-------------
2 files changed, 28 insertions(+), 13 deletions(-)

Upstream: gcc.gnu.org


  • Share