Message ID | 87iochyjah.fsf@e105548-lin.cambridge.arm.com |
---|---|
State | New |
Headers | show |
On Mon, Apr 27, 2015 at 12:09 PM, Richard Sandiford <richard.sandiford@arm.com> wrote: > The generator patch that I'm about to post wants to use inchash.c, > so this patch adds it to the list of files that are built for the > build system as well as the host. > > Tested on x86_64-linux-gnu. OK to install? Ok. THanks, Richard. > Thanks, > Richard > > > gcc/ > * inchash.h, inchash.c: Include bconfig.h for build objects. > * Makefile.in (build/inchash.o): New rule. > > Index: gcc/inchash.h > =================================================================== > --- gcc/inchash.h 2015-04-27 10:38:48.000000000 +0100 > +++ gcc/inchash.h 2015-04-27 10:42:57.783191573 +0100 > @@ -20,7 +20,11 @@ Software Foundation; either version 3, o > #ifndef INCHASH_H > #define INCHASH_H 1 > > +#ifdef GENERATOR_FILE > +#include "bconfig.h" > +#else > #include "config.h" > +#endif > #include "system.h" > #include "coretypes.h" > #include "hashtab.h" > Index: gcc/inchash.c > =================================================================== > --- gcc/inchash.c 2015-04-27 10:38:48.000000000 +0100 > +++ gcc/inchash.c 2015-04-27 10:42:57.783191573 +0100 > @@ -17,7 +17,11 @@ Software Foundation; either version 3, o > along with GCC; see the file COPYING3. If not see > <http://www.gnu.org/licenses/>. */ > > +#ifdef GENERATOR_FILE > +#include "bconfig.h" > +#else > #include "config.h" > +#endif > #include "system.h" > #include "coretypes.h" > #include "hashtab.h" > Index: gcc/Makefile.in > =================================================================== > --- gcc/Makefile.in 2015-04-27 10:38:48.000000000 +0100 > +++ gcc/Makefile.in 2015-04-27 10:42:57.783191573 +0100 > @@ -2434,6 +2434,8 @@ build/vec.o : vec.c $(BCONFIG_H) $(SYSTE > $(GGC_H) toplev.h $(DIAGNOSTIC_CORE_H) > build/hash-table.o : hash-table.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h \ > $(HASH_TABLE_H) $(GGC_H) toplev.h $(DIAGNOSTIC_CORE_H) > +build/inchash.o : inchash.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h \ > + $(HASHTAB_H) inchash.h > build/gencondmd.o : build/gencondmd.c $(BCONFIG_H) $(SYSTEM_H) \ > coretypes.h $(GTM_H) insn-constants.h \ > $(filter-out insn-flags.h, $(RTL_H) $(TM_P_H) $(FUNCTION_H) $(REGS_H) \ >
Index: gcc/inchash.h =================================================================== --- gcc/inchash.h 2015-04-27 10:38:48.000000000 +0100 +++ gcc/inchash.h 2015-04-27 10:42:57.783191573 +0100 @@ -20,7 +20,11 @@ Software Foundation; either version 3, o #ifndef INCHASH_H #define INCHASH_H 1 +#ifdef GENERATOR_FILE +#include "bconfig.h" +#else #include "config.h" +#endif #include "system.h" #include "coretypes.h" #include "hashtab.h" Index: gcc/inchash.c =================================================================== --- gcc/inchash.c 2015-04-27 10:38:48.000000000 +0100 +++ gcc/inchash.c 2015-04-27 10:42:57.783191573 +0100 @@ -17,7 +17,11 @@ Software Foundation; either version 3, o along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ +#ifdef GENERATOR_FILE +#include "bconfig.h" +#else #include "config.h" +#endif #include "system.h" #include "coretypes.h" #include "hashtab.h" Index: gcc/Makefile.in =================================================================== --- gcc/Makefile.in 2015-04-27 10:38:48.000000000 +0100 +++ gcc/Makefile.in 2015-04-27 10:42:57.783191573 +0100 @@ -2434,6 +2434,8 @@ build/vec.o : vec.c $(BCONFIG_H) $(SYSTE $(GGC_H) toplev.h $(DIAGNOSTIC_CORE_H) build/hash-table.o : hash-table.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h \ $(HASH_TABLE_H) $(GGC_H) toplev.h $(DIAGNOSTIC_CORE_H) +build/inchash.o : inchash.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h \ + $(HASHTAB_H) inchash.h build/gencondmd.o : build/gencondmd.c $(BCONFIG_H) $(SYSTEM_H) \ coretypes.h $(GTM_H) insn-constants.h \ $(filter-out insn-flags.h, $(RTL_H) $(TM_P_H) $(FUNCTION_H) $(REGS_H) \