summaryrefslogtreecommitdiff
path: root/gcc/integrate.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-03-28 13:45:47 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-03-28 13:45:47 +0000
commit3672a1356e76b1c9d3922cd6d66a06fcd14e172a (patch)
tree3fc1738f4dd5bccbc770dbfba297794da2f0a13f /gcc/integrate.c
parent4568a72793358c80533d5838a71d429fb6c22e8a (diff)
downloadgcc-3672a1356e76b1c9d3922cd6d66a06fcd14e172a.tar.gz
* integrate.c (copy_rtx_and_substitute): Rework to avoid need for
unused "junk" variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18878 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r--gcc/integrate.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c
index e6258b33b05..cde8b6f3e7d 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -2606,12 +2606,15 @@ copy_rtx_and_substitute (orig, map)
|| SET_DEST (orig) == virtual_incoming_args_rtx)
{
/* In case a translation hasn't occurred already, make one now. */
- rtx junk = copy_rtx_and_substitute (SET_DEST (orig), map);
- rtx equiv_reg = map->reg_map[REGNO (SET_DEST (orig))];
- rtx equiv_loc = map->const_equiv_map[REGNO (equiv_reg)];
- HOST_WIDE_INT loc_offset
+ rtx equiv_reg;
+ rtx equiv_loc;
+ HOST_WIDE_INT loc_offset;
+
+ copy_rtx_and_substitute (SET_DEST (orig), map);
+ equiv_reg = map->reg_map[REGNO (SET_DEST (orig))];
+ equiv_loc = map->const_equiv_map[REGNO (equiv_reg)];
+ loc_offset
= GET_CODE (equiv_loc) == REG ? 0 : INTVAL (XEXP (equiv_loc, 1));
-
return gen_rtx_SET (VOIDmode, SET_DEST (orig),
force_operand
(plus_constant