[Bug tree-optimization/18241] [4.0 Regression] linux kernel loop gets miscompiled

law at redhat dot com gcc-bugzilla@gcc.gnu.org
Mon Dec 13 22:16:00 GMT 2004


------- Additional Comments From law at redhat dot com  2004-12-13 22:15 -------
FWIW, I've walked through all the actions of DOM1 and AFAICT every change it
makes is correct.  I would have to strongly suspect that DOM1 is not the problem
here, but is instead changing things in such a way as to expose some downstream
issue.

I've also looked pretty closely at the later tree optimizer dumps.  If indeed
the problem is the ret = *pathp[0].slot statement blowing up, I would strongly
suggest some printf debugging of the first loop.  Namely, how many times does
it iterate and what is the value of pathp before and after the loop.

Jeff

-- 


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



More information about the Gcc-bugs mailing list