[LLVMdev] Problem with ALWAYS_INLINE
Chris Lattner
clattner at apple.com
Wed Mar 3 12:47:45 PST 2010
On Mar 3, 2010, at 2:02 AM, Edmund Grimley Evans wrote:
> Using GCC 3.4.6 20060404 (Red Hat 3.4.6-11) I've had this problem with
> the ALWAYS_INLINE directive in SelectionDAGISel.cpp:
>
> /arm/scratch/egrimley/llvm.svn/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp: In function `bool CheckChildType(const unsigned char*, unsigned int&, llvm::SDValue, const llvm::TargetLowering&, unsigned int)':
> /arm/scratch/egrimley/llvm.svn/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1880: sorry, unimplemented: inlining failed in call to 'bool CheckType(const unsigned char*, unsigned int&, llvm::SDValue, const llvm::TargetLowering&)': function body not available
> /arm/scratch/egrimley/llvm.svn/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1894: sorry, unimplemented: called from here
> make[3]: ***
> [/arm/scratch/egrimley/llvm-svn-obj/lib/CodeGen/SelectionDAG/Debug/SelectionDAGISel.o] Error 1
>
> I've not investigated any further as I'll probably switch to a newer GCC
> quite soon anyway. As a work-around I've changed 4 to 5 in these lines
> in include/llvm/Support/Compiler.h:
>
> #if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
> #define ALWAYS_INLINE __attribute__((always_inline))
Sounds good, thanks for the heads up. Committed in r97662
-Chris
More information about the llvm-dev
mailing list