diff options
author | Tim Lange <mail@tim-lange.me> | 2022-08-13 13:31:45 +0200 |
---|---|---|
committer | Tim Lange <mail@tim-lange.me> | 2022-08-13 14:00:32 +0200 |
commit | 21d52d11df82e55abfdde3c5c49fbcc103d83861 (patch) | |
tree | bde33de82e63b7c13c74b5248f5125040caf05f9 | |
parent | 475ed8fdc78cb9221a191e90868b268e8429f72e (diff) | |
download | gcc-21d52d11df82e55abfdde3c5c49fbcc103d83861.zip gcc-21d52d11df82e55abfdde3c5c49fbcc103d83861.tar.gz gcc-21d52d11df82e55abfdde3c5c49fbcc103d83861.tar.bz2 |
testsuite: Disable out-of-bounds checker in analyzer/torture/pr93451.c
This patch disables Wanalyzer-out-of-bounds for analyzer/torture/pr93451.c
and makes the test case pass when compiled with -m32.
The emitted warning is a true positive but only occurs if
sizeof (long int) is less than sizeof (double). I've already discussed a
similar case with Dave in the context of pr96764.c and we came to the
conclusion that we just disable the checker in such cases.
Committed under the "obvious fix" rule.
gcc/testsuite/ChangeLog:
* gcc.dg/analyzer/torture/pr93451.c:
Disable Wanalyzer-out-of-bounds.
-rw-r--r-- | gcc/testsuite/gcc.dg/analyzer/torture/pr93451.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/analyzer/torture/pr93451.c b/gcc/testsuite/gcc.dg/analyzer/torture/pr93451.c index 5908bc4..daac745 100644 --- a/gcc/testsuite/gcc.dg/analyzer/torture/pr93451.c +++ b/gcc/testsuite/gcc.dg/analyzer/torture/pr93451.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-Wno-analyzer-out-of-bounds" } */ + void mt (double); |