[PATCH] Remove wrong assert about single value profiler.

Martin Liška mliska@suse.cz
Tue Jun 11 13:17:00 GMT 2019


Hi.

The assert in stream_out_histogram_value is wrong about single value
counters where we can have a negative number as a target of an indirect
call. And likewise we use special value -1 for counters that overflow.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Thanks,
Martin

gcc/ChangeLog:

2019-06-11  Martin Liska  <mliska@suse.cz>

	* value-prof.c (stream_out_histogram_value): Only first value
	can't be negative.
---
 gcc/value-prof.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Remove-wrong-assert-about-single-value-profiler.patch
Type: text/x-patch
Size: 595 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190611/edbaf066/attachment.bin>


More information about the Gcc-patches mailing list