From: David Edelsohn Date: Mon, 23 Dec 2002 15:26:13 +0000 (+0000) Subject: expr.c (expand_assignment): Apply special treatment to ARRAY_TYPE. X-Git-Tag: releases/gcc-3.4.0~9833 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c02ae17fed20316d9790f679903b274f6abe77d;p=thirdparty%2Fgcc.git expr.c (expand_assignment): Apply special treatment to ARRAY_TYPE. * expr.c (expand_assignment): Apply special treatment to ARRAY_TYPE. From-SVN: r60437 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1328e0b5c9f2..d066b2811dbe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-12-23 David Edelsohn + + * expr.c (expand_assignment): Apply special treatment to + ARRAY_TYPE. + 2002-12-23 Kazu Hirata * config/h8300/h8300-protos.h: Update the prototype of diff --git a/gcc/expr.c b/gcc/expr.c index 2d9403643cea..f4ea7c9c2935 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -4027,7 +4027,8 @@ expand_assignment (to, from, want_value, suggest_reg) problem. */ if (TREE_CODE (to) == COMPONENT_REF || TREE_CODE (to) == BIT_FIELD_REF - || TREE_CODE (to) == ARRAY_REF || TREE_CODE (to) == ARRAY_RANGE_REF) + || TREE_CODE (to) == ARRAY_REF || TREE_CODE (to) == ARRAY_RANGE_REF + || TREE_CODE (TREE_TYPE (to)) == ARRAY_TYPE) { enum machine_mode mode1; HOST_WIDE_INT bitsize, bitpos;