This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18241] [4.0 Regression] linux kernel loop gets miscompiled
- From: "ak at muc dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Nov 2004 03:07:03 -0000
- Subject: [Bug tree-optimization/18241] [4.0 Regression] linux kernel loop gets miscompiled
- References: <20041031010322.18241.ak@muc.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ak at muc dot de 2004-11-01 03:07 -------
I must correct myself slightly - the kernel oops I see is not the second
loop, but in the check before:
ret = *pathp[0].slot; <--- references either NULL or a bogus pointer
if (ret == NULL)
goto out;
I tried various options, but only -O0 resolves it. -O1, -O2 -fno-ivopts or -O1
-fno-tree-loop-ivcanon doesn't (depending on the options the crash
is a NULL pointer or a bogus non NULL pointer)
It's hard unfortunately to construct a run time test because it would
need to create a simulated radixtree.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18241