[cfe-dev] Builtins.def compile error on Windows

John Thompson john.thompson.jtsoftware at gmail.com
Wed Jun 10 12:06:23 PDT 2009

i.e. the name being used in a string table or lookup somewhere.  What's a
better fix?

On Wed, Jun 10, 2009 at 12:03 PM, John Thompson <
john.thompson.jtsoftware at gmail.com> wrote:

> The file include/llvm/Config/alloca.h has a "#define alloca _alloca" which
> substitutes the "alloca" in Builtins.def, resulting in the Builtin::BIalloca
> reference in CGBuiltin.cpp being undefined.
> Changing "LIBBUILTIN(alloca, "v*z",         "f",     "stdlib.h")" to
> "LIBBUILTIN(_alloca, "v*z",         "f",     "stdlib.h")",
> and the one reference to "Builtin::BIalloca" to "Builtin::BI_alloca" in
> CGBuiltin.cpp seems an easy fix, but I don't know if there are other issues
> with this.
> --
> John Thompson
> John.Thompson.JTSoftware at gmail.com

John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090610/67164e4d/attachment.html>

More information about the cfe-dev mailing list