summaryrefslogtreecommitdiff
path: root/gcc/config/moxie
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/moxie')
-rw-r--r--gcc/config/moxie/moxie.c4
-rw-r--r--gcc/config/moxie/moxie.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/moxie/moxie.c b/gcc/config/moxie/moxie.c
index d70eaac3015..8d40412d095 100644
--- a/gcc/config/moxie/moxie.c
+++ b/gcc/config/moxie/moxie.c
@@ -504,9 +504,9 @@ moxie_static_chain (const_tree fndecl, bool incoming_p)
return NULL;
if (incoming_p)
- addr = plus_constant (arg_pointer_rtx, 2 * UNITS_PER_WORD);
+ addr = plus_constant (Pmode, arg_pointer_rtx, 2 * UNITS_PER_WORD);
else
- addr = plus_constant (stack_pointer_rtx, -UNITS_PER_WORD);
+ addr = plus_constant (Pmode, stack_pointer_rtx, -UNITS_PER_WORD);
mem = gen_rtx_MEM (Pmode, addr);
MEM_NOTRAP_P (mem) = 1;
diff --git a/gcc/config/moxie/moxie.h b/gcc/config/moxie/moxie.h
index d2a455b289c..c80d26c5ae9 100644
--- a/gcc/config/moxie/moxie.h
+++ b/gcc/config/moxie/moxie.h
@@ -278,7 +278,7 @@ enum reg_class
the prologue. */
#define INCOMING_RETURN_ADDR_RTX \
gen_frame_mem (Pmode, \
- plus_constant (stack_pointer_rtx, UNITS_PER_WORD))
+ plus_constant (Pmode, stack_pointer_rtx, UNITS_PER_WORD))
/* Describe how we implement __builtin_eh_return. */
#define EH_RETURN_DATA_REGNO(N) ((N) < 4 ? (N+2) : INVALID_REGNUM)
@@ -286,7 +286,7 @@ enum reg_class
/* Store the return handler into the call frame. */
#define EH_RETURN_HANDLER_RTX \
gen_frame_mem (Pmode, \
- plus_constant (frame_pointer_rtx, UNITS_PER_WORD))
+ plus_constant (Pmode, frame_pointer_rtx, UNITS_PER_WORD))
/* Storage Layout */