mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
gprof: Run tst-gmon-gprof-l.sh after tst-gmon-gprof.sh
Both tst-gmon-gprof.sh and tst-gmon-gprof-l.sh generate gmon.out and process it. Run tst-gmon-gprof-l.sh after tst-gmon-gprof.sh to avoid the race condition. * testsuite/Makefile.am (tst-gmon-gprof-l.out): Depend on tst-gmon-gprof.out. * testsuite/Makefile.in: Regenerated. Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
@@ -37,7 +37,9 @@ tst-gmon-gprof.out: tst-gmon$(EXEEXT) $(GPROF)
|
||||
|
||||
check_SCRIPTS += tst-gmon-gprof-l.sh
|
||||
check_DATA += tst-gmon-gprof-l.out
|
||||
tst-gmon-gprof-l.out: tst-gmon$(EXEEXT) $(GPROF)
|
||||
# Run tst-gmon-gprof-l.sh after tst-gmon-gprof.sh to avoid the race
|
||||
# condition since they both generate gmon.out.
|
||||
tst-gmon-gprof-l.out: tst-gmon$(EXEEXT) $(GPROF) tst-gmon-gprof.out
|
||||
$(srcdir)/tst-gmon-gprof-l.sh $(GPROF) tst-gmon$(EXEEXT)
|
||||
|
||||
endif NATIVE
|
||||
|
||||
@@ -884,7 +884,9 @@ uninstall-am:
|
||||
@NATIVE_TRUE@ $(LINK) tst-gmon.$(OBJEXT)
|
||||
@NATIVE_TRUE@tst-gmon-gprof.out: tst-gmon$(EXEEXT) $(GPROF)
|
||||
@NATIVE_TRUE@ $(srcdir)/tst-gmon-gprof.sh $(GPROF) tst-gmon$(EXEEXT)
|
||||
@NATIVE_TRUE@tst-gmon-gprof-l.out: tst-gmon$(EXEEXT) $(GPROF)
|
||||
# Run tst-gmon-gprof-l.sh after tst-gmon-gprof.sh to avoid the race
|
||||
# condition since they both generate gmon.out.
|
||||
@NATIVE_TRUE@tst-gmon-gprof-l.out: tst-gmon$(EXEEXT) $(GPROF) tst-gmon-gprof.out
|
||||
@NATIVE_TRUE@ $(srcdir)/tst-gmon-gprof-l.sh $(GPROF) tst-gmon$(EXEEXT)
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
|
||||
Reference in New Issue
Block a user