re PR tree-optimization/51683 (__builtin_memcpy etc. with constant first argument...
authorJakub Jelinek <jakub@redhat.com>
Sat, 31 Dec 2011 23:53:57 +0000 (00:53 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 31 Dec 2011 23:53:57 +0000 (00:53 +0100)
commit45a5b21a77abdc519b14f8c1a8d3340b58be43f2
treeeae0d52d578dbcd38c56a08992fb9bb1ddb7b2ac
parent6f2ffb4b99ccfb64adc0edc9998329ee9de32eff
re PR tree-optimization/51683 (__builtin_memcpy etc. with constant first argument optimized away by ccp)

PR tree-optimization/51683
* tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
calls with side-effects.
* tree-ssa-ccp.c (ccp_fold_stmt): Likewise.

* gcc.dg/pr51683.c: New test.

From-SVN: r182761
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr51683.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c
gcc/tree-ssa-propagate.c