- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
今天遇到一个Werror=Wcoverage_mismatch
编译时出错erlang/opt :
beam/beam_emu.c: In function 'erts_current_reductions':
beam/beam_emu.c:3150:1: error: the control flow of function 'erts_current_reductions' does not match its profile data (counter 'arcs') [-Werror=coverage-mismatch]
}
...
if (entry->n_counts != n_counts)
warning_printed = warning_at(
DECL_SOURCE_LOCATION(current_function_decl), OPT_Wcoverage_mismatch,
"number of counters in profile data for function %qD "
"does not match "
"its profile data (counter %qs, expected %i and have %i)",
current_function_decl, ctr_names[counter], entry->n_counts, n_counts);
else
warning_printed = warning_at(
DECL_SOURCE_LOCATION(current_function_decl), OPT_Wcoverage_mismatch,
"the control flow of function %qD does not match "
"its profile data (counter %qs)",
current_function_decl, ctr_names[counter]);
最佳答案
请参阅 Warning options 上的 GCC (9.2.0) 手册:
-Wno-coverage-mismatch
Warn if feedback profiles do not match when using the
-fprofile-use
option. If a source file is changed between compiling with-fprofile-generate
and with-fprofile-use
, the files with the profile feedback can fail to match the source file and GCC cannot use the profile feedback information. By default, this warning is enabled and is treated as an error.-Wno-coverage-mismatch
can be used to disable the warning or-Wno-error=coverage-mismatch
can be used to disable the error. Disabling the error for this warning can result in poorly optimized code and is useful only in the case of very minor changes such as bug fixes to an existing code-base. Completely disabling the warning is not recommended.
关于c - gcc 警告 "coverage_mismatch"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59259069/
今天遇到一个Werror=Wcoverage_mismatch编译时出错erlang/opt : beam/beam_emu.c: In function 'erts_current_reductio
我是一名优秀的程序员,十分优秀!