[LLVMdev] malloc, magic, and embedded compilation
Chris Lattner
sabre at nondot.org
Wed May 14 14:38:24 PDT 2008
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?
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list