<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2013/5/23 Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im">On 05/23/2013 10:13 AM, Paolo Redaelli wrote:<br>
> I'm trying to parse recent LLVM headers but I'm not able to solve this issue:<br>
><br>
> gccxml -fexceptions `llvm-config --cppflags --cflags --cxxflags ` plugin/c/llvm-liberty.h -fxml=llvm.gcc-xml<br>
<br>
</div>What is the output of llvm-config with those flags?<br></blockquote><div><br>First of all thanks in advance for any hints and suggestion.<br><br>Here's all the missing informations required to reproduce the issue<br>
paolo@qualita:/media/Liberty/tybor-liberty/src/wrappers/llvm/library/externals$ llvm-config --cppflags --cflags --cxxflags <br>-I/usr/lib/llvm-3.1/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>
-I/usr/lib/llvm-3.1/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -g -O2 -fomit-frame-pointer -fPIC<br>-I/usr/lib/llvm-3.1/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -g -O2 -fomit-frame-pointer -fvisibility-inlines-hidden -fno-exceptions -fPIC -Woverloaded-virtual -Wcast-qual<br>
<br><br><br></div></div>paolo@qualita:/media/Liberty/tybor-liberty/src/wrappers/llvm/library/externals$ cat plugin/c/llvm-liberty.h <br>#ifdef DEBUG // Let's be verbose during compile<br>#   warning "LLVM-liberty starting include" <br>
#endif<br><br>#ifndef __builtin_bswap32 // previously __llvm__ <br>extern unsigned int __builtin_bswap32(unsigned int _data);<br>#endif<br><br>#ifndef __builtin_bswap64<br>extern unsigned long __builtin_bswap64(unsigned long _data);<br>
#endif <br><br>#ifndef __builtin_unreachable<br>#    include <stdlib.h><br>#    define __builtin_unreachable abort<br>#endif<br><br>#include <llvm-c/Analysis.h><br>#include <llvm-c/BitReader.h><br>#include <llvm-c/BitWriter.h><br>
#include <llvm-c/Core.h><br>#include <llvm-c/ExecutionEngine.h><br>// #include <llvm-c/LinkTimeOptimizer.h><br>// #include <llvm-c/Target.h><br>// #include <llvm-c/lto.h><br>// #include <llvm-c/Transforms/IPO.h><br>
// #include <llvm-c/Transforms/Scalar.h><br>#ifdef DEBUG // Let's be verbose during compile<br>#   warning "LLVM-liberty ending include"<br>#endif<br><br></div></div>