[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
Sun Jul 12 02:36:16 PDT 2009
Nick Lewycky wrote:
> 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.
Thanks!
Ciao,
Duncan.
More information about the llvm-commits
mailing list