From: Richard Kenner Date: Fri, 7 Apr 1995 16:35:49 +0000 (-0400) Subject: (expand_expr, case ADDR_EXPR): Always call convert_memory_address when X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9fcfcce70560913bbcc3d8fcf8e62fc2a73e4e26;p=gcc.git (expand_expr, case ADDR_EXPR): Always call convert_memory_address when converting; add extra arg. From-SVN: r9329 --- diff --git a/gcc/expr.c b/gcc/expr.c index 7e65189e75c..d65445a172a 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -6265,8 +6265,7 @@ expand_expr (exp, target, tmode, modifier) #ifdef POINTERS_EXTEND_UNSIGNED if (GET_MODE (temp) == Pmode && GET_MODE (temp) != mode && mode == ptr_mode) - temp = convert_modes (ptr_mode, Pmode, temp, - POINTERS_EXTEND_UNSIGNED); + temp = convert_memory_address (ptr_mode, temp); #endif return temp; } @@ -6288,7 +6287,7 @@ expand_expr (exp, target, tmode, modifier) #ifdef POINTERS_EXTEND_UNSIGNED if (GET_MODE (op0) == Pmode && GET_MODE (op0) != mode && mode == ptr_mode) - op0 = convert_modes (ptr_mode, Pmode, op0, POINTERS_EXTEND_UNSIGNED); + op0 = convert_memory_address (ptr_mode, op0); #endif return op0;