aboutsummaryrefslogtreecommitdiff
path: root/gcc/sanopt.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-12-16 16:57:43 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2016-12-16 16:57:43 +0100
commit7b45d0dfeb5f855723a2603bb5ea6585438f224c (patch)
tree1d05f12a040e606bb996ebd77f4df26222ed6d54 /gcc/sanopt.c
parent6b520e8d4a24036508ad59eadf725437d2717a84 (diff)
downloadgcc-7b45d0dfeb5f855723a2603bb5ea6585438f224c.zip
gcc-7b45d0dfeb5f855723a2603bb5ea6585438f224c.tar.gz
gcc-7b45d0dfeb5f855723a2603bb5ea6585438f224c.tar.bz2
re PR c/78408 (C loop initial declarations generate wrong code)
PR c/78408 * tree-ssa-ccp.c: Include tree-dfa.h. (optimize_memcpy): New function. (pass_fold_builtins::execute): Use it. Remove useless conditional break after BUILT_IN_VA_*. * gcc.dg/pr78408-1.c: New test. * gcc.dg/pr78408-2.c: New test. From-SVN: r243753
Diffstat (limited to 'gcc/sanopt.c')
-rw-r--r--gcc/sanopt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/sanopt.c b/gcc/sanopt.c
index 7fe8d32..e72a49b 100644
--- a/gcc/sanopt.c
+++ b/gcc/sanopt.c
@@ -802,6 +802,9 @@ sanitize_asan_mark_poison (void)
if (maybe_contains_asan_check (stmt))
{
bitmap_set_bit (with_check, bb->index);
+if (dump_file)
+fprintf (dump_file, "setting bit %d\n", bb->index);
+
break;
}
}