aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorDonn Terry <donn@interix.com>1999-04-26 00:39:01 +0000
committerJeff Law <law@gcc.gnu.org>1999-04-25 18:39:01 -0600
commitab40f612254bcfadf24f4eed82aabc17fdb86cd1 (patch)
tree8cdab521f075debcecb7693f7d03aa8163fb7c5b /gcc/expr.c
parente03ec28f6eae9b81909b1324d7d61113b2e67b95 (diff)
downloadgcc-ab40f612254bcfadf24f4eed82aabc17fdb86cd1.zip
gcc-ab40f612254bcfadf24f4eed82aabc17fdb86cd1.tar.gz
gcc-ab40f612254bcfadf24f4eed82aabc17fdb86cd1.tar.bz2
* expr.c (expand_assignment): Improve test for pointer type.
From-SVN: r26634
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 5b6b2a7..553117b 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -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);