From: Steve Ellcey Date: Wed, 17 Jun 2009 15:37:20 +0000 (+0000) Subject: expr.c (expand_assignment): Change complex type check. X-Git-Tag: releases/gcc-4.5.0~5155 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a1a65f89285e88ea19cec1650d76a26de83bdcc6;p=thirdparty%2Fgcc.git expr.c (expand_assignment): Change complex type check. 2009-06-17 Steve Ellcey * expr.c (expand_assignment): Change complex type check. From-SVN: r148614 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7c20d41fb35c..31d2264643b7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2009-06-17 Steve Ellcey + + * expr.c (expand_assignment): Change complex type check. + 2009-06-17 Basile Starynkevitch * doc/plugins.texi (Building GCC plugins): Added new section. diff --git a/gcc/expr.c b/gcc/expr.c index 34137c0cd07e..94f0bcf0df60 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -4250,7 +4250,7 @@ expand_assignment (tree to, tree from, bool nontemporal) /* Handle expand_expr of a complex value returning a CONCAT. */ if (GET_CODE (to_rtx) == CONCAT) { - if (TREE_CODE (TREE_TYPE (from)) == COMPLEX_TYPE) + if (COMPLEX_MODE_P (TYPE_MODE (TREE_TYPE (from)))) { gcc_assert (bitpos == 0); result = store_expr (from, to_rtx, false, nontemporal);