diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2001-07-03 01:58:35 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-07-02 21:58:35 -0400 |
commit | ed8908e739ba82f3903d5f3e9ff80ed6865cf978 (patch) | |
tree | 20f4c1fadc86f3b89ef524490fc2bd176650f76c /gcc/recog.c | |
parent | aee96fe99b16dc13f61ebd1076b80335e8a71f8b (diff) | |
download | gcc-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/recog.c')
-rw-r--r-- | gcc/recog.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/recog.c b/gcc/recog.c index dd5318b..10230d5 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -1968,7 +1968,7 @@ offsettable_address_p (strictp, mode, y) of the specified mode. We assume that if Y and Y+c are valid addresses then so is Y+d for all 0<d<c. */ - z = plus_constant_for_output (y, mode_sz - 1); + z = plus_constant (y, mode_sz - 1); /* Use QImode because an odd displacement may be automatically invalid for any wider mode. But it should be valid for a single byte. */ @@ -2035,8 +2035,7 @@ adj_offsettable_operand (op, offset) if (CONSTANT_ADDRESS_P (y)) { - new = gen_rtx_MEM (GET_MODE (op), - plus_constant_for_output (y, offset)); + new = gen_rtx_MEM (GET_MODE (op), plus_constant (y, offset)); MEM_COPY_ATTRIBUTES (new, op); return new; } @@ -2051,12 +2050,12 @@ adj_offsettable_operand (op, offset) const_loc = find_constant_term_loc (&z); if (const_loc) { - *const_loc = plus_constant_for_output (*const_loc, offset); + *const_loc = plus_constant (*const_loc, offset); return op; } } - new = gen_rtx_MEM (GET_MODE (op), plus_constant_for_output (y, offset)); + new = gen_rtx_MEM (GET_MODE (op), plus_constant (y, offset)); MEM_COPY_ATTRIBUTES (new, op); return new; } |