Commit 9fcfcce7 by Richard Kenner

(expand_expr, case ADDR_EXPR): Always call convert_memory_address when

converting; add extra arg.

From-SVN: r9329
parent 498b529f
...@@ -6265,8 +6265,7 @@ expand_expr (exp, target, tmode, modifier) ...@@ -6265,8 +6265,7 @@ expand_expr (exp, target, tmode, modifier)
#ifdef POINTERS_EXTEND_UNSIGNED #ifdef POINTERS_EXTEND_UNSIGNED
if (GET_MODE (temp) == Pmode && GET_MODE (temp) != mode if (GET_MODE (temp) == Pmode && GET_MODE (temp) != mode
&& mode == ptr_mode) && mode == ptr_mode)
temp = convert_modes (ptr_mode, Pmode, temp, temp = convert_memory_address (ptr_mode, temp);
POINTERS_EXTEND_UNSIGNED);
#endif #endif
return temp; return temp;
} }
...@@ -6288,7 +6287,7 @@ expand_expr (exp, target, tmode, modifier) ...@@ -6288,7 +6287,7 @@ expand_expr (exp, target, tmode, modifier)
#ifdef POINTERS_EXTEND_UNSIGNED #ifdef POINTERS_EXTEND_UNSIGNED
if (GET_MODE (op0) == Pmode && GET_MODE (op0) != mode if (GET_MODE (op0) == Pmode && GET_MODE (op0) != mode
&& mode == ptr_mode) && mode == ptr_mode)
op0 = convert_modes (ptr_mode, Pmode, op0, POINTERS_EXTEND_UNSIGNED); op0 = convert_memory_address (ptr_mode, op0);
#endif #endif
return op0; return op0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment