public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2037] testsuite: Disable out-of-bounds checker in analyzer/torture/pr93451.c
@ 2022-08-13 12:05 Tim Lange
0 siblings, 0 replies; only message in thread
From: Tim Lange @ 2022-08-13 12:05 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:21d52d11df82e55abfdde3c5c49fbcc103d83861
commit r13-2037-g21d52d11df82e55abfdde3c5c49fbcc103d83861
Author: Tim Lange <mail@tim-lange.me>
Date: Sat Aug 13 13:31:45 2022 +0200
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.
Diff:
---
gcc/testsuite/gcc.dg/analyzer/torture/pr93451.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/analyzer/torture/pr93451.c b/gcc/testsuite/gcc.dg/analyzer/torture/pr93451.c
index 5908bc4b69f..daac745d504 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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-13 12:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-13 12:05 [gcc r13-2037] testsuite: Disable out-of-bounds checker in analyzer/torture/pr93451.c Tim Lange
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).