aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2015-05-19 07:10:15 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2015-05-19 07:10:15 +0000
commit5d2446b1ed3a1b5342eebc4bc6da93740c400428 (patch)
tree660647f16402a255959c61c4d4b8128ae70e90d4 /gcc/expr.c
parent9fccb3359422e2c649e55e20713b9a8fa2c1d0be (diff)
downloadgcc-5d2446b1ed3a1b5342eebc4bc6da93740c400428.zip
gcc-5d2446b1ed3a1b5342eebc4bc6da93740c400428.tar.gz
gcc-5d2446b1ed3a1b5342eebc4bc6da93740c400428.tar.bz2
caller-save.c (init_caller_save): Use word_mode and FIRST_PSEUDO_REGISTER when creating temporary rtxes.
gcc/ * caller-save.c (init_caller_save): Use word_mode and FIRST_PSEUDO_REGISTER when creating temporary rtxes. * expr.c (init_expr_target): Likewise. * ira.c (setup_prohibited_mode_move_regs): Likewise. * postreload.c (reload_cse_regs_1): Likewise. From-SVN: r223340
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 6694fc1..80e6350 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -202,12 +202,12 @@ init_expr_target (void)
/* Try indexing by frame ptr and try by stack ptr.
It is known that on the Convex the stack ptr isn't a valid index.
With luck, one or the other is valid on any machine. */
- mem = gen_rtx_MEM (VOIDmode, stack_pointer_rtx);
- mem1 = gen_rtx_MEM (VOIDmode, frame_pointer_rtx);
+ mem = gen_rtx_MEM (word_mode, stack_pointer_rtx);
+ mem1 = gen_rtx_MEM (word_mode, frame_pointer_rtx);
/* A scratch register we can modify in-place below to avoid
useless RTL allocations. */
- reg = gen_rtx_REG (VOIDmode, -1);
+ reg = gen_rtx_REG (word_mode, FIRST_PSEUDO_REGISTER);
insn = rtx_alloc (INSN);
pat = gen_rtx_SET (NULL_RTX, NULL_RTX);