testsuite: Add -fno-tree-loop-distribute-patterns.
authorRobin Dapp <rdapp@linux.ibm.com>
Fri, 1 Apr 2022 07:52:56 +0000 (09:52 +0200)
committerRobin Dapp <rdapp@linux.ibm.com>
Tue, 5 Apr 2022 06:43:39 +0000 (08:43 +0200)
commit321d1dcf610d8af8da4c1feb76819fea24fcd27e
tree512c1f3b436de4d1bd19ebbc1b223e55066e1c03
parente3174d6183e5c042e822d9feabb670235b737441
testsuite: Add -fno-tree-loop-distribute-patterns.

In gcc.dg/Wuse-after-free-2.c we try to detect a use-after-free.  The
test's while loop is converted into a rawmemchr builtin making
it impossible to determine that the pointers *p and *q are related.

Therefore, disable the tree loop distribute patterns pass for this test.

gcc/testsuite/ChangeLog:

* gcc.dg/Wuse-after-free-2.c:
Add -fno-tree-loop-distribute-patterns in order to avoid
rawmemchr.
gcc/testsuite/gcc.dg/Wuse-after-free-2.c