This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gcc/Makefile.in dependencies
Ralf Wildenhues <Ralf.Wildenhues@gmx.de> writes:
> Thus, for rebuilds after source file changes, I propose the patch below.
> Since I can't reasonably test it for all targets, the next question is
> whether there is a chance that gt-$(basename $(notdir $(out_file))).h
> may not be generated at all for some target (does gengtype always create
> all output files?).
gengtype always creates all output files.
> 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
>
> * Makefile.in ($(out_object_file)): Depend on
> gt-$(basename $(notdir $(out_file))).h.
>
> diff --git a/gcc/Makefile.in b/gcc/Makefile.in
> index a464026..954be13 100644
> --- a/gcc/Makefile.in
> +++ b/gcc/Makefile.in
> @@ -3250,7 +3250,7 @@ $(out_object_file): $(out_file) $(CONFIG_H) coretypes.h $(TM_H) $(TREE_H) \
> output.h $(INSN_ATTR_H) $(SYSTEM_H) $(TOPLEV_H) $(TARGET_H) libfuncs.h \
> $(TARGET_DEF_H) $(FUNCTION_H) $(SCHED_INT_H) $(TM_P_H) $(EXPR_H) \
> langhooks.h $(GGC_H) $(OPTABS_H) $(REAL_H) tm-constrs.h $(GIMPLE_H) $(DF_H) \
> - cselib.h
> + cselib.h gt-$(basename $(notdir $(out_file))).h
> $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
> $(out_file) $(OUTPUT_OPTION)
>
This is OK.
Thanks.
Ian