diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-03 16:44:27 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-03 16:44:27 +0000 |
commit | ed89620f0e3de714864805f5d29dbab0341a1746 (patch) | |
tree | 210dfff56dd58777f4158379cad83d2abb5d41c6 /gcc/errors.c | |
parent | 4327ff5a4a2eae7f3279d3fc0612c644b493e80a (diff) | |
download | gcc-ed89620f0e3de714864805f5d29dbab0341a1746.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218325 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/errors.c')
-rw-r--r-- | gcc/errors.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/errors.c b/gcc/errors.c index be38b1f2779..a6a30fee871 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" |