aboutsummaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-07-03 01:58:35 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-07-02 21:58:35 -0400
commited8908e739ba82f3903d5f3e9ff80ed6865cf978 (patch)
tree20f4c1fadc86f3b89ef524490fc2bd176650f76c /gcc/alias.c
parentaee96fe99b16dc13f61ebd1076b80335e8a71f8b (diff)
downloadgcc-ed8908e739ba82f3903d5f3e9ff80ed6865cf978.zip
gcc-ed8908e739ba82f3903d5f3e9ff80ed6865cf978.tar.gz
gcc-ed8908e739ba82f3903d5f3e9ff80ed6865cf978.tar.bz2
explow.c (plus_constant_wide, [...]): New case.
* explow.c (plus_constant_wide, case LO_SUM): New case. (plus_constant_for_output_wide): Delete. * rtl.h (plus_constant_for_output): Delete. * alias.c (canon_rtx, init_alias_analysis): Call plus_constant instead of plus_constant_for_output. * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise. * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise. * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise. * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise. * config/sparc/sparc.md: Likewise. Convert some change_address calls to adjust_address. From-SVN: r43720
Diffstat (limited to 'gcc/alias.c')
-rw-r--r--gcc/alias.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/alias.c b/gcc/alias.c
index 79c0c33..8335425 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -959,12 +959,10 @@ canon_rtx (x)
if (x0 != XEXP (x, 0) || x1 != XEXP (x, 1))
{
- /* We can tolerate LO_SUMs being offset here; these
- rtl are used for nothing other than comparisons. */
if (GET_CODE (x0) == CONST_INT)
- return plus_constant_for_output (x1, INTVAL (x0));
+ return plus_constant (x1, INTVAL (x0));
else if (GET_CODE (x1) == CONST_INT)
- return plus_constant_for_output (x0, INTVAL (x1));
+ return plus_constant (x0, INTVAL (x1));
return gen_rtx_PLUS (GET_MODE (x), x0, x1);
}
}
@@ -2349,8 +2347,7 @@ init_alias_analysis ()
rtx op0 = XEXP (src, 0);
op0 = reg_known_value[REGNO (op0)];
reg_known_value[regno]
- = plus_constant_for_output (op0,
- INTVAL (XEXP (src, 1)));
+ = plus_constant (op0, INTVAL (XEXP (src, 1)));
reg_known_equiv_p[regno] = 0;
}
else if (REG_N_SETS (regno) == 1