[llvm-commits] [llvm-gcc-4.2] r75388 - in /llvm-gcc-4.2/trunk/gcc: llvm-abi.h llvm-types.cpp

Nick Lewycky nicholas at mxc.ca
Sat Jul 11 23:27:41 PDT 2009


Duncan Sands wrote:
> Hi Nick,
> 
>> Move C-style includes ahead of the LLVM ones to prevent LLVM #define's from
>> leaking into GCC. This fixes the compiler error on linux where
>> VISIBILITY_HIDDEN is defined (gcc tries to use it as a name in an enum).
> 
> this problem came up before.  The solution in llvm-backend.cpp is to
> #undef VISIBILITY_HIDDEN before including the gcc headers.  Does that
> work in this case too?  If so, I prefer it since it makes explicit what
> the problem is.

Done.

Nick



More information about the llvm-commits mailing list