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. diff --git a/gcc/config/cr16/cr16-protos.h b/gcc/config/cr16/cr16-protos.h index a521315..f6663c9 100644 --- a/gcc/config/cr16/cr16-protos.h +++ b/gcc/config/cr16/cr16-protos.h @@ -21,8 +21,6 @@ #ifndef GCC_CR16_PROTOS_H #define GCC_CR16_PROTOS_H -#include "target.h" - /* Register usage. */ extern enum reg_class cr16_regno_reg_class (int); extern int cr16_hard_regno_mode_ok (int regno, enum machine_mode); -- Jan-Benedict Glaw jbg...@lug-owl.de +49-172-7608481 Signature of: GDB has a 'break' feature; why doesn't it have 'fix' too? the second :
signature.asc
Description: Digital signature