[cfe-dev] Builtins.def compile error on Windows
AlisdairM(public)
public at alisdairm.net
Wed Jun 10 12:41:19 PDT 2009
From: cfe-dev-bounces at cs.uiuc.edu [mailto:cfe-dev-bounces at cs.uiuc.edu] On
Behalf Of John Thompson
Sent: 10 June 2009 20:06
To: cfe-dev at cs.uiuc.edu
Subject: Re: [cfe-dev] Builtins.def compile error on Windows
> 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
Thanks for tracking this down John - it explains the build problems I was
having last week,
and why no-one else could reproduce them - I'm assuming Windows builds are
not regularly
tested.
I've been working around this by commenting out the reference to
Builtin::BIalloca as I
had no idea where it came from, and I guess that is no longer to correct
solution either!
Unfortunately I have no ideas for a better resolution myself.
AlisdairM
More information about the cfe-dev
mailing list