re PR c/68337 ([MPX] memcpy() for arrays with function pointers results in huge resou...
authorIlya Enkovich <enkovich.gnu@gmail.com>
Tue, 24 Nov 2015 09:45:20 +0000 (09:45 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Tue, 24 Nov 2015 09:45:20 +0000 (09:45 +0000)
commit3de2a40ecdfa37efa403d4b46ef116225acb0dc0
tree3418f5bf30bacb63903659e0d25d3b02c74fb671
parent8632824e9c117077ef95d907ff51553b584609ba
re PR c/68337 ([MPX] memcpy() for arrays with function pointers results in huge resource usage and binaries)

gcc/

PR c/68337
* gimple-fold.c: Include ipa-chkp.h.
(gimple_fold_builtin_memory_op): Don't fold call if we
are going to instrument it and it may copy pointers.

gcc/testsuite/

PR c/68337
* gcc.target/i386/mpx/pr68337-1.c: New test.
* gcc.target/i386/mpx/pr68337-2.c: New test.

From-SVN: r230796
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/mpx/pr68337-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/mpx/pr68337-2.c [new file with mode: 0644]