diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-19 07:10:30 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-19 07:10:30 +0000 |
commit | 937ca48e60c2d96704e1a8ae8b3b1a0f6c8884d7 (patch) | |
tree | e80e5feb9d03c58ba2389923025b96b099c6ff0e /gcc/caller-save.c | |
parent | 06a78ffe878bc997ad000d860e4e4781e277fcc7 (diff) | |
download | gcc-937ca48e60c2d96704e1a8ae8b3b1a0f6c8884d7.tar.gz |
gcc/
* rtl.h (PUT_MODE_RAW): New macro.
(PUT_REG_NOTE_KIND): Use it.
(set_mode_and_regno): Declare.
(gen_raw_REG): Change regno to "unsigned int".
(gen_rtx_REG): Change "unsigned" to "unsigned int".
(PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
use set_mode_and_regno to change the mode of registers.
* gengenrtl.c (gendef): Use PUT_MODE_RAW.
* emit-rtl.c (set_mode_and_regno): New function.
(gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
* caller-save.c (reg_save_code): Use set_mode_and_regno.
* expr.c (init_expr_target): Likewise.
* ira.c (setup_prohibited_mode_move_regs): Likewise.
* postreload.c (reload_cse_simplify_operands): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223341 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/caller-save.c')
-rw-r--r-- | gcc/caller-save.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/caller-save.c b/gcc/caller-save.c index fcc36488bca..2cb77e6ccdf 100644 --- a/gcc/caller-save.c +++ b/gcc/caller-save.c @@ -150,8 +150,7 @@ reg_save_code (int reg, machine_mode mode) /* Update the register number and modes of the register and memory operand. */ - SET_REGNO_RAW (test_reg, reg); - PUT_MODE (test_reg, mode); + set_mode_and_regno (test_reg, mode, reg); PUT_MODE (test_mem, mode); /* Force re-recognition of the modified insns. */ |