This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/33992] [4.3 Regression] Miscompiles function with inlining, breaks profiledbootstrap
- 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: 10 Feb 2008 22:36:29 -0000
- Subject: [Bug tree-optimization/33992] [4.3 Regression] Miscompiles function with inlining, breaks profiledbootstrap
- References: <bug-33992-13189@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #36 from rguenth at gcc dot gnu dot org 2008-02-10 22:36 -------
Actually the wrong types are caused by loop IM which replaces the bittest
D.1210_17 = D.1208_13 >> 63;
D.1211_2 = (int) D.1210_17;
if (D.1211_1 != 0)
by
shifttmp.48_12 = 0x8000000000000000;
shifttmp.48_16 = shifttmp.48_12 & D.1208_13;
if (shifttmp.48_16 != 0)
but forgets to update the type of the zero. Testing the patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33992