Re: [google gcc-4_7] coverage callback instrumentation (issue9630043)

2013-05-22 Thread Xinliang David Li
Looks ok to me in general. 1) the parameter name is not ideal -- it is not callonce. 2) it might be better to extend the callonce parameter into -ftest-coverage option such as -ftest-coverage=exec_once? 3) need documentation in invoke.texi 4) watch out for long lines. cc Teresa. David On Tue, Ma

[google gcc-4_7] coverage callback instrumentation (issue9630043)

2013-05-21 Thread Rong Xu
This patch is to be used with customized coverage reduction. The functionalities are under two parameter options: --param=COVERAGE-CALLBACK={0|1} when enabled with 1, it injects a callback function for each arc counter. Default off. --param=COVERAGE-CALLONCE={0|1} when enabled with 1, it stops inc