On 07/09/2013 05:05 PM, Jan-Benedict Glaw wrote:
Hi!

I just tried to build cr16-elf, which fails due to a dependency
problem: `gencodes' is needed to build insn-codes.h, but for building
it, target.h is included in cr16-protos.h, which in turn includes
insn-codes.h:

[...]
g++ -c   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti 
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings 
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long 
-Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H 
-DGENERATOR_FILE -I. -Ibuild -I../../../../gcc/gcc -I../../../../gcc/gcc/build 
-I../../../../gcc/gcc/../include -I../../../../gcc/gcc/../libcpp/include  
-I../../../../gcc/gcc/../libdecnumber -I../../../../gcc/gcc/../libdecnumber/dpd 
-I../libdecnumber -I../../../../gcc/gcc/../libbacktrace    \
                 -o build/gencondmd.o build/gencondmd.c
In file included from ../../../../gcc/gcc/config/cr16/cr16-protos.h:24:0,
                  from ./tm_p.h:4,
                  from build/gencondmd.c:24:
../../../../gcc/gcc/target.h:52:24: fatal error: insn-codes.h: No such file or 
directory
compilation terminated.
make[2]: *** [build/gencondmd.o] Error 1
make[2]: Leaving directory `/mnt/devel/src/linux/build/cr16-elf/gcc-stage1/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/mnt/devel/src/linux/build/cr16-elf/gcc-stage1'



The target.h include in cr16-protos.h isn't needed, so don't include
it. This allows to build for cr16-elf again.

Ok to commit?

2013-07-10  Jan-Benedict Glaw  <jbg...@lug-owl.de>

gcc/
        * config/cr16/cr16-protos.h: Don't include target.h.
This is fine.  Thanks.

jeff

Reply via email to