[LLVMdev] Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM

Vladimir Prus ghost at cs.msu.su
Mon Mar 6 07:13:37 PST 2006


Chris Lattner wrote:

> On Thu, 2 Mar 2006, Chris Lattner wrote:
>>> Any ideas what could be wrong?
>>
>> Sorry for the delay, please try this tarball:
>> http://nondot.org/sabre/2006-03-02-llvm-gcc-4.tar.gz
> 
> Actually, do to a recent change in CVS, this tarball will probably not
> work anymore.  Please apply the attached (small) patch on top of it in
> the gcc directory.
> 
> Worth noting, this front-end only works with LLVM mainline, not LLVM 1.6.

Without the patch, I get this:


  TreeToLLVM::StartFunctionBody()':
../../2006-03-02-llvm-gcc-4/gcc/llvm-convert.cpp:344: warning: statement
with
   no effect
../../2006-03-02-llvm-gcc-4/gcc/llvm-convert.cpp: At global scope:
../../2006-03-02-llvm-gcc-4/gcc/llvm-convert.cpp:1305: error: parse error
   before `__attribute__'
../../2006-03-02-llvm-gcc-4/gcc/llvm-convert.cpp: In function `tree_node*
   StripLLVMTranslationFn(...)':
../../2006-03-02-llvm-gcc-4/gcc/llvm-convert.cpp:1312: error: `I' undeclared
   (first use this function)
../../2006-03-02-llvm-gcc-4/gcc/llvm-convert.cpp:1312: error: (Each
undeclared
   identifier is reported only once for each function it appears in.)
../../2006-03-02-llvm-gcc-4/gcc/llvm-convert.cpp:1312: error: ISO C++
forbids
   declaration of `tsi_next' with no type
../../2006-03-02-llvm-gcc-4/gcc/llvm-convert.cpp:1312: error: `int tsi_next'


With the patch, I get exactly the same error. The configure command was:

../2006-03-02-llvm-gcc-4/configure --enable-languages=c,c++
--enable-llvm=/space/p2/ghost/build/llvm-cvs/install --prefix=`pwd`/install
--program-prefix=llvm-                                        

and my LLVM is CVS state as of Friday.

Any suggestions?

- Volodya






More information about the llvm-dev mailing list