[LLVMdev] Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM
Chris Lattner
sabre at nondot.org
Mon Mar 6 18:43:35 PST 2006
On Mon, 6 Mar 2006, Vladimir Prus wrote:
> ../../2006-03-02-llvm-gcc-4/gcc/llvm-convert.cpp:1305: error: parse
error
> before `__attribute__'
Can you send me the preprocessed .i file for this file?
To work around the above error, just remove "ATTRIBUTE_UNUSED" from that
line.
> ../../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'
This is more strange. The code likes this for me:
for (tree_stmt_iterator I = tsi_start(node); !tsi_end_p(I); tsi_next(&I))
if (TREE_CODE(tsi_stmt(I)) == LABEL_EXPR)
SET_DECL_LLVM(TREE_OPERAND(tsi_stmt(I), 0), 0);
Is this what you have? If so, can you send me the preprocessed source
file? What host compiler are you using?
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list