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

From-SVN: r26634
This commit is contained in:
Donn Terry 1999-04-26 00:39:01 +00:00 committed by Jeff Law
parent e03ec28f6e
commit ab40f61225
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
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>
* alpha.c (print_operand_address): Account for the subreg word.

View File

@ -3395,8 +3395,8 @@ expand_assignment (to, from, want_value, suggest_reg)
else
{
#ifdef POINTERS_EXTEND_UNSIGNED
if (TREE_CODE (to) == REFERENCE_TYPE
|| TREE_CODE (to) == POINTER_TYPE)
if (TREE_CODE (TREE_TYPE (to)) == REFERENCE_TYPE
|| TREE_CODE (TREE_TYPE (to)) == POINTER_TYPE)
value = convert_memory_address (GET_MODE (to_rtx), value);
#endif
emit_move_insn (to_rtx, value);