]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
expr.c (expand_assignment): Change complex type check.
authorSteve Ellcey <sje@cup.hp.com>
Wed, 17 Jun 2009 15:37:20 +0000 (15:37 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Wed, 17 Jun 2009 15:37:20 +0000 (15:37 +0000)
2009-06-17  Steve Ellcey  <sje@cup.hp.com>

* expr.c (expand_assignment): Change complex type check.

From-SVN: r148614

gcc/ChangeLog
gcc/expr.c

index 7c20d41fb35c802949ed32ef661b0dabf6180b06..31d2264643b7cb84fa6fd4a971e7ba33e58bfe34 100644 (file)
@@ -1,3 +1,7 @@
+2009-06-17  Steve Ellcey  <sje@cup.hp.com>
+
+       * expr.c (expand_assignment): Change complex type check.
+
 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
 
        * doc/plugins.texi (Building GCC plugins): Added new section. 
index 34137c0cd07ebac43d32a34bc4222cd4973f99d3..94f0bcf0df60ab0906b2be22e2838a98fa433dae 100644 (file)
@@ -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);