Commit ab40f612 by Donn Terry Committed by Jeff Law

* expr.c (expand_assignment): Improve test for pointer type.

From-SVN: r26634
parent e03ec28f
Mon Apr 26 01:30:59 1999 Donn Terry <donn@interix.com>
* expr.c (expand_assignment): Improve test for pointer type.
Mon Apr 26 00:26:18 1999 Richard Henderson <rth@cygnus.com> Mon Apr 26 00:26:18 1999 Richard Henderson <rth@cygnus.com>
* alpha.c (print_operand_address): Account for the subreg word. * alpha.c (print_operand_address): Account for the subreg word.
......
...@@ -3395,8 +3395,8 @@ expand_assignment (to, from, want_value, suggest_reg) ...@@ -3395,8 +3395,8 @@ expand_assignment (to, from, want_value, suggest_reg)
else else
{ {
#ifdef POINTERS_EXTEND_UNSIGNED #ifdef POINTERS_EXTEND_UNSIGNED
if (TREE_CODE (to) == REFERENCE_TYPE if (TREE_CODE (TREE_TYPE (to)) == REFERENCE_TYPE
|| TREE_CODE (to) == POINTER_TYPE) || TREE_CODE (TREE_TYPE (to)) == POINTER_TYPE)
value = convert_memory_address (GET_MODE (to_rtx), value); value = convert_memory_address (GET_MODE (to_rtx), value);
#endif #endif
emit_move_insn (to_rtx, value); emit_move_insn (to_rtx, value);
......
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