forked from github/verilator
Internal coverage: Backout -fkeep-inline-functions.
This commit is contained in:
parent
ac171f16fd
commit
1533693654
@ -41,7 +41,13 @@ def test():
|
|||||||
cxx_flags = (
|
cxx_flags = (
|
||||||
"--coverage"
|
"--coverage"
|
||||||
# Otherwise inline may not show as uncovered
|
# Otherwise inline may not show as uncovered
|
||||||
+ " -fkeep-inline-functions"
|
# If we use this then e.g. verilated.h functions properly show up
|
||||||
|
# if unused.
|
||||||
|
# However, VerilatedSerialize::write then changes from covered
|
||||||
|
# to uncovered (in G++ 9.3.0) even with all inlining turned off.
|
||||||
|
# Having false negative coverage is more effort then missing negatives.
|
||||||
|
# Also this seems to explode the runtime (since a lot more data).
|
||||||
|
#+ " -fkeep-inline-functions"
|
||||||
# Otherwise static may not show as uncovered
|
# Otherwise static may not show as uncovered
|
||||||
+ " -fkeep-static-functions"
|
+ " -fkeep-static-functions"
|
||||||
# Exceptions can pollute the branch coverage data
|
# Exceptions can pollute the branch coverage data
|
||||||
@ -135,6 +141,8 @@ def test():
|
|||||||
run(RealPath + "/fastcov.py -b -c src/obj_dbg -X --lcov" +
|
run(RealPath + "/fastcov.py -b -c src/obj_dbg -X --lcov" +
|
||||||
# " --exclude /usr --exclude test_regress" + " -o " + cc_dir +
|
# " --exclude /usr --exclude test_regress" + " -o " + cc_dir +
|
||||||
" -o " + cc_dir + "/app_total.info")
|
" -o " + cc_dir + "/app_total.info")
|
||||||
|
# For debug to convert single .gcna/.gcno in a directory to cov.info:
|
||||||
|
# lcov -c -d . -o cov.info
|
||||||
ci_fold_end()
|
ci_fold_end()
|
||||||
|
|
||||||
if Args.stage_enabled[6]:
|
if Args.stage_enabled[6]:
|
||||||
|
Loading…
Reference in New Issue
Block a user