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
+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
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.
--- /dev/null
+/* PR sanitizer/80444 */
+/* { dg-do compile } */
+/* { dg-options "-fsanitize-coverage=trace-pc -fcompare-debug" } */
+
+void
+foo (void)
+{
+ int a = 0;
+}