This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Two possible fixes for g++.dg/torture/pr32950.C failure


On Tue, 2009-06-16 at 11:31 +0200, Richard Guenther wrote:

> You can refer to TYPE_MODE (TREE_TYPE (from)) instead, that
> should work here.
> 
> Richard.

Yes, that works.  I have done a bootstrap and test with no regressions
using this patch and it fixes pr32950.C, is it OK to check it in?

Steve Ellcey
sje@cup.hp.com


2009-06-16  Steve Ellcey  <sje@cup.hp.com>

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



Index: expr.c
===================================================================
--- expr.c      (revision 148510)
+++ expr.c      (working copy)
@@ -4250,7 +4250,7 @@ expand_assignment (tree to, tree from, b
       /* 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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]