]> git.ipfire.org Git - thirdparty/gcc.git/commit
Reimplement LEAF_REG_REMAP macro for the SPARC
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 6 Jun 2021 21:54:24 +0000 (23:54 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Sun, 6 Jun 2021 21:57:39 +0000 (23:57 +0200)
commitfed94fc9e704b0de228499495b7ca4d4c79ef76b
tree9a8a1e51e92be2f0ac60bf897728e5c621a55140
parent03d921abe60fe9ff54a3c449eff1531e73a19215
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.
gcc/config/sparc/sparc-protos.h
gcc/config/sparc/sparc.c
gcc/config/sparc/sparc.h