Op 24 feb. 2012 17:36 schreef "Kai Tietz" <[email protected]> het
volgende:
>
> Hmm, well, if Clang doesn't need this define we can guard it in our
> header for it.

It's only problematic when compiling clang itself, it being a builtin
shouldn't be a problem for other code I think.

>
> Otherwise it might be also an option to do in clang an undefine at the
> place you mentioned.

I'll see if they agree too :)

Thanks,

Ruben

>
> Regards,
> Kai
>
> PS:  All my patches I wanna to see in 4.7 are committed.  Also recent
> regression in binutils is fixed.  So I think it would be good to do a
> fresh gcc 4.7 build.  As there is the patch about gthread.h in gcc, it
> might be worth to retry shared winpthread-version, too.
>
>
> 2012/2/24 Ruben Van Boxem <[email protected]>:
> > I believe my latest 4.7 build (which uses trunk instead of v2.x) has a
> > conflict with Clang, which defined its builtins inside C++ code (which
is
> > altered by the macro)
> >
> > I can remedy the problem in Clang by #undef'ing the macro before Clang's
> > builtins are defined, but before submitting a patch I wonder if
MinGW-w64
> > can't fix it on this end.
> >
> > The problematic code is here:
> > http://llvm.org/svn/llvm-project/cfe/trunk/lib/AST/Decl.cpp
> >
> > The error I get (with my 4.7.0-2 build) is that BIstrncasecmp is not a
> > member of Builtin. This enum or whatever gets constructed by a clever
macro
> > and the contents of
> >
http://llvm.org/svn/llvm-project/cfe/trunk/include/clang/Basic/Builtins.def
> >
> > If I place
> > #undef strncasecmp
> > before the first occurence of that string of characters in this file,
> > compilation succeeds. They also did a similar thing for setjmp, but it's
> > quite strange MinGW-w64 trunk would be the only platform affected by
this.
> >
> > What is the best way to solve this?
> >
> > Any input is much appreciated.
> >
> > Thanks,
> >
> > Ruben
> >
> >
------------------------------------------------------------------------------
> > Virtualization & Cloud Management Using Capacity Planning
> > Cloud computing makes use of virtualization - but cloud computing
> > also focuses on allowing computing to be delivered as a service.
> > http://www.accelacomm.com/jaw/sfnl/114/51521223/
> > _______________________________________________
> > Mingw-w64-public mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
> >
>
>
>
> --
> |  (\_/) This is Bunny. Copy and paste
> | (='.'=) Bunny into your signature to help
> | (")_(") him gain world domination
>
>
------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to