aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-03-28 13:45:47 +0000
committerJeff Law <law@gcc.gnu.org>1998-03-28 06:45:47 -0700
commitd6e6c585a1c1e6cf52f4c57ef2087bb1b4d531aa (patch)
tree3fc1738f4dd5bccbc770dbfba297794da2f0a13f /gcc
parent2e61a5a5d49ec5609d624815475afc736eb408fa (diff)
downloadgcc-d6e6c585a1c1e6cf52f4c57ef2087bb1b4d531aa.zip
gcc-d6e6c585a1c1e6cf52f4c57ef2087bb1b4d531aa.tar.gz
gcc-d6e6c585a1c1e6cf52f4c57ef2087bb1b4d531aa.tar.bz2
integrate.c (copy_rtx_and_substitute): Rework to avoid need for unused "junk" variable.
* integrate.c (copy_rtx_and_substitute): Rework to avoid need for unused "junk" variable. From-SVN: r18878
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/integrate.c13
2 files changed, 11 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d6844e1..9b12080 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
Sat Mar 28 14:37:20 1998 Jeffrey A Law (law@cygnus.com)
+ * integrate.c (copy_rtx_and_substitute): Rework to avoid need for
+ unused "junk" variable.
+
* genattrtab.c (write_complex_function): Add a default case in
generated switch statement to keep -W -Wall quiet.
diff --git a/gcc/integrate.c b/gcc/integrate.c
index e6258b3..cde8b6f 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