re PR gcov-profile/57269 (ICE in gcov_open, at gcov-io.c:82)

2013-05-14  Richard Biener  <rguenther@suse.de>

	PR gcov-profile/57269
	Backport from mainline
	2012-06-30  Nathan Sidwell  <nathan@acm.org>

	* coverage.c (coverage_init): Read counts file before writing
	graph header.

From-SVN: r198875
This commit is contained in:
Richard Biener 2013-05-14 10:49:28 +00:00 committed by Richard Biener
parent 465c9c586b
commit c7bedab877
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,12 @@
2013-05-14 Richard Biener <rguenther@suse.de>
PR gcov-profile/57269
Backport from mainline
2012-06-30 Nathan Sidwell <nathan@acm.org>
* coverage.c (coverage_init): Read counts file before writing
graph header.
2013-05-13 Uros Bizjak <ubizjak@gmail.com>
PR target/57264

View File

@ -1099,6 +1099,9 @@ coverage_init (const char *filename)
memcpy (da_file_name + prefix_len, filename, len);
strcpy (da_file_name + prefix_len + len, GCOV_DATA_SUFFIX);
if (flag_branch_probabilities)
read_counts_file ();
/* Name of bbg file. */
if (flag_test_coverage && !flag_compare_debug)
{
@ -1118,9 +1121,6 @@ coverage_init (const char *filename)
gcov_write_unsigned (local_tick);
}
}
if (flag_branch_probabilities)
read_counts_file ();
}
/* Performs file-level cleanup. Close graph file, generate coverage