Commit 3b5fb3cb by Jakub Jelinek Committed by Jakub Jelinek

re PR sanitizer/80444 (-fcompare-debug failures with -fsanitize-coverage=trace-pc)

	PR sanitizer/80444
	* sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
	instead of gsi_after_labels.

	* gcc.dg/sancov/pr80444.c: New test.

From-SVN: r246971
parent d1446456
2017-04-18 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/80444
* sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
instead of gsi_after_labels.
2017-04-18 Jeff Law <law@redhat.com>
* regcprop.c (maybe_mode_change): Avoid creating copies of the
......
......@@ -46,7 +46,7 @@ sancov_pass (function *fun)
basic_block bb;
FOR_EACH_BB_FN (bb, fun)
{
gimple_stmt_iterator gsi = gsi_after_labels (bb);
gimple_stmt_iterator gsi = gsi_start_nondebug_after_labels_bb (bb);
if (gsi_end_p (gsi))
continue;
gimple *stmt = gsi_stmt (gsi);
......
2017-04-18 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/80444
* gcc.dg/sancov/pr80444.c: New test.
PR middle-end/79788
PR middle-end/80375
* gcc.dg/pr79788-1.c: New test.
......
/* PR sanitizer/80444 */
/* { dg-do compile } */
/* { dg-options "-fsanitize-coverage=trace-pc -fcompare-debug" } */
void
foo (void)
{
int a = 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment