]> git.ipfire.org Git - thirdparty/gcc.git/commit
Testsuite, darwin: Fix analyzer testcases
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 20 Aug 2023 18:02:43 +0000 (20:02 +0200)
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 20 Aug 2023 18:02:43 +0000 (20:02 +0200)
commit7694d0352a92d9f91c7afa69df0a0e56f95a771b
tree7f79bcacc90b6080c55b74ae488470fe8920ea4a
parent02393e4b5eabe1c64720b022cb6f819e7b4dc08b
Testsuite, darwin: Fix analyzer testcases

On darwin, system headers are fortified by default and that defeats the
analyzer's warnings on memcpy() calls.  Turn this off for testing.

gcc/testsuite/ChangeLog:

* gcc.dg/plugin/taint-CVE-2011-0521-5-fixed.c: Use
_FORTIFY_SOURCE=0 on darwin.
* gcc.dg/plugin/taint-CVE-2011-0521-5.c: Likewise.
* gcc.dg/plugin/taint-CVE-2011-0521-6.c: Likewise.
gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-5-fixed.c
gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-5.c
gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-6.c