diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/expr.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1f1944f..c3cf0cb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. @@ -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); |