]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* expr.c (expand_assignment): Improve test for pointer type.
authorDonn Terry <donn@interix.com>
Mon, 26 Apr 1999 00:39:01 +0000 (00:39 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 26 Apr 1999 00:39:01 +0000 (18:39 -0600)
From-SVN: r26634

gcc/ChangeLog
gcc/expr.c

index 1f1944faee06b639f0bd3077345b584b9b5fa4d6..c3cf0cb99b24c2d74c4a8b2df8938e3c292d8729 100644 (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.
index 5b6b2a7dab37713a1c257d24c1895a46fc5ecf68..553117bc8ba92e9d40f06a63b932d8d702839810 100644 (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);