Re:Clang (LLVM C compiler) builds a working Linux kernel
by mzl on Tuesday October 26, 2010 @01:31AM
(#1833152)
That looks like an interesting tool, I'll have to try it out. The program is deterministic given a fixed seed.
The bug depends on whether or not optimization is on, so it might be in the backend. What I've heard is that the C++ FE in particular still does have some troubles with miscompilations, so that is why I suspect it.
People may help you by suggesting strategies for finding a small test case that tickles the same problem if you post to the mailing list here http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev . I've posted a couple times and found people surprisingly responsive and helpful.