$(LLVMOBJDIR)/include should be added to the serch path

If llvm is build with srcdir != objdir, building gcc will fail with

../../llvm-gcc4-1.7.source/gcc/llvm-internal.h:36:36: error:
llvm/Support/DataTypes.h: No such file or directory

This happens because DataTypes.h is a generated header.

Adding -I$(LLVMOBJDIR)/include to INCLUDES in Makefile.in:878 solves
the problem.

One more thing, is the modified GCC available in some svn or cvs repository?

Thanks,
Rafael

If llvm is build with srcdir != objdir, building gcc will fail with
../../llvm-gcc4-1.7.source/gcc/llvm-internal.h:36:36: error:
llvm/Support/DataTypes.h: No such file or directory

This happens because DataTypes.h is a generated header.

Adding -I$(LLVMOBJDIR)/include to INCLUDES in Makefile.in:878 solves
the problem.

Yup, sounds good. Change applied.

One more thing, is the modified GCC available in some svn or cvs repository?

Unfortunately, the svn repository is currently internal to apple, which makes syncing changes easier with it. I will put together a new tarball soon, which will include the recent improvements you've contributed.

-Chris