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

Duncan Sands baldrick at free.fr
Sat Jul 11 21:03:17 PDT 2009


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.

Ciao,

Duncan.



More information about the llvm-commits mailing list