diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2021-06-06 23:54:24 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2021-06-06 23:57:39 +0200 |
commit | fed94fc9e704b0de228499495b7ca4d4c79ef76b (patch) | |
tree | 9a8a1e51e92be2f0ac60bf897728e5c621a55140 /gcc/final.c | |
parent | 03d921abe60fe9ff54a3c449eff1531e73a19215 (diff) | |
download | gcc-fed94fc9e704b0de228499495b7ca4d4c79ef76b.zip gcc-fed94fc9e704b0de228499495b7ca4d4c79ef76b.tar.gz gcc-fed94fc9e704b0de228499495b7ca4d4c79ef76b.tar.bz2 |
Reimplement LEAF_REG_REMAP macro for the SPARC
The current implementation as an array of chars is indeed a bit awkward
so this reimplements it as a function taking and returning an int.
gcc/
* config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
to...
(sparc_order_regs_for_local_alloc): ...this.
(sparc_leaf_reg_remap): Declare.
* config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
(LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
* config/sparc/sparc.c (leaf_reg_remap): Delete.
(order_regs_for_local_alloc): Rename to...
(sparc_order_regs_for_local_alloc): ...this.
(sparc_leaf_reg_remap): New function.
(sparc_conditional_register_usage): Do not modify leaf_reg_remap.
Diffstat (limited to 'gcc/final.c')
0 files changed, 0 insertions, 0 deletions