re PR c/78408 (C loop initial declarations generate wrong code)
authorJakub Jelinek <jakub@redhat.com>
Fri, 16 Dec 2016 15:57:43 +0000 (16:57 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Dec 2016 15:57:43 +0000 (16:57 +0100)
commit7b45d0dfeb5f855723a2603bb5ea6585438f224c
tree1d05f12a040e606bb996ebd77f4df26222ed6d54
parent6b520e8d4a24036508ad59eadf725437d2717a84
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
gcc/ChangeLog
gcc/sanopt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr78408-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr78408-2.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c