[LLVMdev] malloc, magic, and embedded compilation
Jonathan S. Shapiro
shap at eros-os.com
Wed May 14 15:41:32 PDT 2008
On Wed, 2008-05-14 at 14:38 -0700, Chris Lattner wrote:
> On Wed, 14 May 2008, Jonathan S. Shapiro wrote:
> >> huh?
> >
> > Duncan asserted that there is a behavior in GlobalOpt.cpp that relies on
> > main being the single entry point. If he is mistaken, great. If he is
> > correct, a regression test case for this seems like a useful thing to
> > build. I'm not saying that somebody else should do it. In fact, it seems
> > like a fine way to start getting my hands dirty.
>
> Yes, globalopt does that.
>
> You're asking two questions:
>
> 1. Does llvm incorrectly assume things that break C++ constructors and the
> GNU extensions.
> 2. Does llvm assume things that break kernels.
>
> The answer to #1 is no. The answer to #2 is "not if you use
> -ffree-standing". Why do you care about globalopt.cpp specifically?
Only because Duncan mentioned it.
More information about the llvm-dev
mailing list