[cfe-dev] plans about kernel compilation?
scott at buserror.net
Sun Oct 28 09:30:53 PDT 2007
On Sun, Oct 28, 2007 at 12:18:26AM -0700, Giangiacomo Mariotti wrote:
> > I'm just a newbie lurker here, but I expect that, in time, you should
> > be able to compile any kernel that can be compiled with GCC because
> > one of the goals of the clang project is GCC compatibility.
> Ok,maybe I should have been more explicit about what I meant.
> Look here for example:
> There you can find a discusson about a problem for threaded
> programs caused by a recently made default optimization of gcc.
> This problem has been discussed on the lkml, because it affects the
> kernel too. This is a problem more centered on the optimization
> phase,but if the front-end doesn't care about certain compilation
> scenarios,maybe the rest of the compiler doesn't care too.So maybe
> my question hould have been : "Is cfe interested in supporting
> kernels compilation"?
That *was* your question. Based on the above, it probably should
have been "Is cfe planning on implementing optimizations that cause
memory locations to be written to even if the condition controlling
the write is false (or more generally, optimizations that are hostile
to significant amounts of existing threaded code), with no option to
disable them, and with no alternative less sucky than volatile or
More information about the cfe-dev