[LLVMdev] Re: New llvmgcc4 snapshot
Vladimir Prus
ghost at cs.msu.su
Sat May 13 02:45:28 PDT 2006
Chris Lattner wrote:
>
> Hi All,
>
> There's a new snapshot of llvmgcc4 available here:
>
> http://nondot.org/sabre/2006-05-08-llvm-gcc-4.tar.gz
>
> This release includes the various portability fixes contributed on
> llvmdev, includes fixes to build with mainline CVS (and, thus, *requires*
> mainline CVS), and includes various other bug fixes.
>
> If you're interested, please try it out.
I get this with LLVM CVS:
../../2006-05-08-llvm-gcc-4/gcc/llvm-backend.cpp: In function `void
llvm_asm_file_start()':
../../2006-05-08-llvm-gcc-4/gcc/llvm-backend.cpp:150: error: invalid use of
undefined type `struct llvm::TargetData'
../../2006-05-08-llvm-gcc-4/gcc/llvm-internal.h:56: error: forward
declaration
of `struct llvm::TargetData'
../../2006-05-08-llvm-gcc-4/gcc/llvm-backend.cpp:180: error: invalid use of
undefined type `struct llvm::TargetData'
../../2006-05-08-llvm-gcc-4/gcc/llvm-internal.h:56: error: forward
declaration
of `struct llvm::TargetData'
../../2006-05-08-llvm-gcc-4/gcc/llvm-backend.cpp: In function `void
emit_global_to_llvm(tree_node*)':
../../2006-05-08-llvm-gcc-4/gcc/llvm-backend.cpp:387: error:
`getTypeAlignment'
undeclared (first use this function)
../../2006-05-08-llvm-gcc-4/gcc/llvm-backend.cpp:387: error: (Each
undeclared
identifier is reported only once for each function it appears in.)
Adding:
#include "llvm/Target/TargetData.h"
Fixed this.
Then I get:
../../2006-05-08-llvm-gcc-4/gcc/llvm-convert.cpp: In member function `void
TreeToLLVM::EmitMemCpy(llvm::Value*, llvm::Value*, llvm::Value*, unsigned
int)':
../../2006-05-08-llvm-gcc-4/gcc/llvm-convert.cpp:800: error: `getIntPtrType'
undeclared (first use this function)
Which is fixed in exactly same way. And then the same change in needed in
llvm-types.cpp.
Chris, any change you'll make gcc4 frontend source available from some CVS?
Then, I can put together a script to build it every night, to make sure
things are in shape.
- Volodya
More information about the llvm-dev
mailing list