This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34241] ICE in forward_propagate_into_cond
- 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: 27 Nov 2007 13:12:44 -0000
- Subject: [Bug middle-end/34241] ICE in forward_propagate_into_cond
- References: <bug-34241-12049@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rguenth at gcc dot gnu dot org 2007-11-27 13:12 -------
I have a patch. The expected result is to optimize
<bb 2>:
a.1_1 = (struct A *) &a;
<<<change_dynamic_type (struct A *) a.1_1)>>>
D.1744_2 = a.1_1;
iftmp.0_3 = (struct A *) D.1744_2;
if (iftmp.0_3 != 0B)
goto <bb 3>;
else
goto <bb 4>;
<bb 3>:
D.1746_4 = 1.0e+0;
__comp_ctor (iftmp.0_3, 42, 1.0e+0);
<bb 4>:
return;
to
<bb 2>:
a.1_1 = (struct A *) &a;
<<<change_dynamic_type (struct A *) a.1_1)>>>
iftmp.0_3 = (struct A *) &a;
D.1746_4 = 1.0e+0;
__comp_ctor (iftmp.0_3, 42, 1.0e+0);
return;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34241