diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-26 11:02:27 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-26 11:02:27 +0000 |
commit | dcd6d0f4c726667e51d190a5823ee277b334ffa8 (patch) | |
tree | dba2c286c477be2bf4c71b98ce3dda560e91b05a /gcc/caller-save.c | |
parent | d5e47a460c58fc586e45a48861b7e240bac9e7ef (diff) | |
download | gcc-dcd6d0f4c726667e51d190a5823ee277b334ffa8.tar.gz |
gcc/
* caller-save.c (init_caller_save): Base temporary register numbers
on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
* cfgloopanal.c (init_set_costs): Likewise.
* dojump.c (prefer_and_bit_test): Likewise.
* expr.c (init_expr_target): Likewise.
* ira.c (setup_prohibited_mode_move_regs): Likewise.
* lower-subreg.c (init_lower_subreg): Likewise.
* postreload.c (reload_cse_regs_1): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223688 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/caller-save.c')
-rw-r--r-- | gcc/caller-save.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/caller-save.c b/gcc/caller-save.c index 673a47051da..be7be7d7399 100644 --- a/gcc/caller-save.c +++ b/gcc/caller-save.c @@ -286,7 +286,7 @@ init_caller_save (void) To avoid lots of unnecessary RTL allocation, we construct all the RTL once, then modify the memory and register operands in-place. */ - test_reg = gen_rtx_REG (word_mode, FIRST_PSEUDO_REGISTER); + test_reg = gen_rtx_REG (word_mode, LAST_VIRTUAL_REGISTER + 1); test_mem = gen_rtx_MEM (word_mode, address); savepat = gen_rtx_SET (test_mem, test_reg); restpat = gen_rtx_SET (test_reg, test_mem); |