From d6d34aa9133afdee0ca74b354a72cb720f431c1a Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 3 Dec 2014 17:44:27 +0100 Subject: Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS), gcc-ar.o, gcc-nm.o and gcc-ranlib.o. * Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS), gcc-ar.o, gcc-nm.o and gcc-ranlib.o. (GENGTYPE_OBJS): New. (gengtype-lex.o, gengtype-parse.o, gengtype-state.o, gengtype.o): Remove explicit dependencies. (CFLAGS-gengtype-lex.o, CFLAGS-gengtype-parse.o, CFLAGS-gengtype-state.o, CFLAGS-gengtype.o): Add -DHOST_GENERATOR_FILE instead of -DGENERATOR_FILE. (CFLAGS-errors.o): New. * gengtype.c: Instead of testing GENERATOR_FILE define, test HOST_GENERATOR_FILE. If defined, include config.h and define GENERATOR_FILE afterwards, otherwise include bconfig.h. * gengtype-parse.c: Likewise. * gengtype-state.c: Likewise. * gengtype-lex.l: Likewise. * errors.c: Likewise. From-SVN: r218325 --- gcc/errors.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/errors.c') diff --git a/gcc/errors.c b/gcc/errors.c index be38b1f..a6a30fe 100644 --- a/gcc/errors.c +++ b/gcc/errors.c @@ -21,10 +21,11 @@ along with GCC; see the file COPYING3. If not see in the generator programs; the compiler has a more elaborate suite of diagnostic printers, found in diagnostic.c. */ -#ifdef GENERATOR_FILE -#include "bconfig.h" -#else +#ifdef HOST_GENERATOR_FILE #include "config.h" +#define GENERATOR_FILE 1 +#else +#include "bconfig.h" #endif #include "system.h" #include "errors.h" -- cgit v1.1