diff options
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r-- | gcc/config/darwin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 15efaa3d8a7..10cbdc39a3f 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -687,7 +687,7 @@ machopic_indirect_data_reference (rtx orig, rtx reg) orig = machopic_indirect_data_reference (XEXP (orig, 1), (base == reg ? 0 : reg)); if (MACHOPIC_INDIRECT && (GET_CODE (orig) == CONST_INT)) - result = plus_constant (base, INTVAL (orig)); + result = plus_constant (Pmode, base, INTVAL (orig)); else result = gen_rtx_PLUS (Pmode, base, orig); @@ -972,7 +972,7 @@ machopic_legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg) Pmode, (base == reg ? 0 : reg)); if (GET_CODE (orig) == CONST_INT) { - pic_ref = plus_constant (base, INTVAL (orig)); + pic_ref = plus_constant (Pmode, base, INTVAL (orig)); is_complex = 1; } else |