------- Comment #1 from rguenth at gcc dot gnu dot org  2008-09-02 11:02 -------
The following should fix it.  Pre-approved if it passes testing.

Index: tree-sra.c
===================================================================
*** tree-sra.c  (revision 139886)
--- tree-sra.c  (working copy)
*************** sra_build_assignment (tree dst, tree src
*** 2308,2315 ****
           && !useless_type_conversion_p (TREE_TYPE (dst), TREE_TYPE (src)))
      src = fold_convert (TREE_TYPE (dst), src);

!   stmt = gimple_build_assign (dst, src);
!   gimple_seq_add_stmt (&seq, stmt);
    return seq;
  }

--- 2308,2314 ----
           && !useless_type_conversion_p (TREE_TYPE (dst), TREE_TYPE (src)))
      src = fold_convert (TREE_TYPE (dst), src);

!   gimplify_assign (dst, src, &seq);
    return seq;
  }


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-02 11:02:10
               date|                            |
            Summary|ACATS la14021 ICE in        |[4.4 Regression] ACATS
                   |gimple_assign_set_rhs1, at  |la14021 ICE in
                   |gimple.h:1747               |gimple_assign_set_rhs1, at
                   |                            |gimple.h:1747
   Target Milestone|---                         |4.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37328

Reply via email to