aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2021-06-06 23:54:24 +0200
committerEric Botcazou <ebotcazou@adacore.com>2021-06-06 23:57:39 +0200
commitfed94fc9e704b0de228499495b7ca4d4c79ef76b (patch)
tree9a8a1e51e92be2f0ac60bf897728e5c621a55140 /gcc/final.c
parent03d921abe60fe9ff54a3c449eff1531e73a19215 (diff)
downloadgcc-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