This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Don't force recompilation of files depending on $(COVERAGE_H)


Op do 01-05-2003, om 18:05 schreef Matt Kraai:
> On Thu, May 01, 2003 at 05:49:17PM +0200, Steven Bosscher wrote:
> > The files that depend on $(COVERAGE_H) (coverage.c, profile.c,
> > predict.c, and tracer.c) are always recompiled even if nothing has
> > changed at all.
> > 
> > I think something like the patch below should fix it, but I'm not much
> > into Makefiles so it might not be correct (works for me though).
> > 
> > So can somebody have a look at this?
> 
> Should you follow the stamp idiom?

I suppose I should, but Nathan already approved my original patch.
Nathan?

Greetz
Steven




> *** Makefile.in.~1.1043.~	Mon Apr 28 19:38:41 2003
> --- Makefile.in	Thu May  1 09:03:24 2003
> ***************
> *** 2432,2439 ****
>   	$(BUILD_CC) -c $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(INCLUDES) $(srcdir)/gcov-iov.c $(OUTPUT_OPTION)
>   gcov-iov$(build_exeext): gcov-iov.o
>   	$(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) gcov-iov.o -o $@
> ! gcov-iov.h: gcov-iov$(build_exeext)
> ! 	./gcov-iov$(build_exeext) > $@
>   
>   gcov.o: gcov.c gcov-io.h gcov-iov.h intl.h $(SYSTEM_H) coretypes.h $(TM_H) $(CONFIG_H)
>   gcov-dump.o: gcov-dump.c gcov-io.h gcov-iov.h $(SYSTEM_H) coretypes.h $(TM_H) $(CONFIG_H)
> --- 2432,2442 ----
>   	$(BUILD_CC) -c $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(INCLUDES) $(srcdir)/gcov-iov.c $(OUTPUT_OPTION)
>   gcov-iov$(build_exeext): gcov-iov.o
>   	$(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) gcov-iov.o -o $@
> ! gcov-iov.h: s-iov ; @true
> ! s-gcov-iov.h: gcov-iov$(build_exeext) $(srcdir)/move-if-change
> ! 	./gcov-iov$(build_exeext) > tmp-gcov-iov.h
> ! 	$(SHELL) $(srcdir)/move-if-change tmp-gcov-iov.h gcov-iov.h
> ! 	$(STAMP) s-gcov-iov.h
>   
>   gcov.o: gcov.c gcov-io.h gcov-iov.h intl.h $(SYSTEM_H) coretypes.h $(TM_H) $(CONFIG_H)
>   gcov-dump.o: gcov-dump.c gcov-io.h gcov-iov.h $(SYSTEM_H) coretypes.h $(TM_H) $(CONFIG_H)
> 
> Matt
> -- 
> Matt Kraai <kraai@alumni.cmu.edu>
> Debian GNU/Linux Peon



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]