summaryrefslogtreecommitdiff
path: root/gcc/config/mn10300
diff options
context:
space:
mode:
authortbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2016-11-21 06:15:00 +0000
committertbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2016-11-21 06:15:00 +0000
commit753de56666d495cb54eb27dd3298eadb96798933 (patch)
tree24ad242f10b1cf079626ce1eecf038554e53022c /gcc/config/mn10300
parent26cd119857f4ac596fb1337ef7297b88da844dd4 (diff)
downloadgcc-753de56666d495cb54eb27dd3298eadb96798933.tar.gz
split up variables to use rtx_insn * more
gcc/ChangeLog: 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split up variables to make some rtx_insn *. * config/alpha/alpha.c (emit_unlikely_jump): Likewise. * config/arc/arc.c: Likewise. * config/arm/arm.c: Likewise. * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise. * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Likewise. * config/spu/spu.c (spu_emit_branch_hint): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242650 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mn10300')
-rw-r--r--gcc/config/mn10300/mn10300.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/config/mn10300/mn10300.c b/gcc/config/mn10300/mn10300.c
index e61bf408d5a..cfc8604f9c8 100644
--- a/gcc/config/mn10300/mn10300.c
+++ b/gcc/config/mn10300/mn10300.c
@@ -1860,6 +1860,7 @@ rtx
mn10300_legitimize_pic_address (rtx orig, rtx reg)
{
rtx x;
+ rtx_insn *insn;
if (GET_CODE (orig) == LABEL_REF
|| (GET_CODE (orig) == SYMBOL_REF
@@ -1873,7 +1874,7 @@ mn10300_legitimize_pic_address (rtx orig, rtx reg)
x = gen_rtx_CONST (SImode, x);
emit_move_insn (reg, x);
- x = emit_insn (gen_addsi3 (reg, reg, pic_offset_table_rtx));
+ insn = emit_insn (gen_addsi3 (reg, reg, pic_offset_table_rtx));
}
else if (GET_CODE (orig) == SYMBOL_REF)
{
@@ -1885,12 +1886,12 @@ mn10300_legitimize_pic_address (rtx orig, rtx reg)
x = gen_rtx_PLUS (SImode, pic_offset_table_rtx, x);
x = gen_const_mem (SImode, x);
- x = emit_move_insn (reg, x);
+ insn = emit_move_insn (reg, x);
}
else
return orig;
- set_unique_reg_note (x, REG_EQUAL, orig);
+ set_unique_reg_note (insn, REG_EQUAL, orig);
return reg;
}
@@ -3163,7 +3164,7 @@ mn10300_bundle_liw (void)
Insert a SETLB insn just before LABEL. */
static void
-mn10300_insert_setlb_lcc (rtx_insn *label, rtx branch)
+mn10300_insert_setlb_lcc (rtx_insn *label, rtx_insn *branch)
{
rtx lcc, comparison, cmp_reg;