This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/37328] [4.4 Regression] ACATS la14021 ICE in gimple_assign_set_rhs1, at gimple.h:1747
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Sep 2008 11:02:11 -0000
- Subject: [Bug ada/37328] [4.4 Regression] ACATS la14021 ICE in gimple_assign_set_rhs1, at gimple.h:1747
- References: <bug-37328-7210@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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