[Bug testsuite/52641] Test cases fail for 16-bit int targets
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 25 19:14:03 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52641
--- Comment #41 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:
https://gcc.gnu.org/g:3774107546a539e2a24ce01a4cfac4b091196537
commit r17-3654-g3774107546a539e2a24ce01a4cfac4b091196537
Author: Georg-Johann Lay <avr@gjlay.de>
Date: Tue Aug 25 21:10:27 2026 +0200
testsuite/52641 - Make analyzer tests pass (or skip) on AVR.
This patch fixes some test cases that failed due to sloppyness,
like:
typedef unsigned int u32;
instead of:
typedef __UINT32_TYPE__ u32;
On avr, many test failed to produce expected warnings since
strcmp etc. is implemented as asm in a gnu inline wrapper.
PR testsuite/52641
gcc/testsuite/
* c-c++-common/analyzer/taint-index-pr106229.c: Require size20plus.
* c-c++-common/analyzer/stdarg-pr111289-int.c [int16]: One
warning won't show up.
* c-c++-common/analyzer/pr96653.c: Use correct types to
define u16, u32, s64, size_t, etc.
* c-c++-common/analyzer/allocation-size-pr113654-1.c: Same.
* c-c++-common/analyzer/out-of-bounds-pr112792.c: Same.
* c-c++-common/analyzer/realloc-pr110014.c: Same.
* c-c++-common/analyzer/uninit-pr108704.c: Same.
* gcc.dg/analyzer/CWE-131-examples.c: Same.
* gcc.dg/analyzer/deref-before-check-pr113253.c: Same.
* gcc.dg/analyzer/torture/switch-3.c: Same.
* gcc.dg/analyzer/torture/switch-4.c: Same.
* gcc.dg/analyzer/torture/switch-enum-pr105273-doom-p_floor.c:
Same.
* gcc.dg/analyzer/atoi-1.c [avr]: Hide one function.
* c-c++-common/analyzer/coreutils-sum-pr108666.c [avr-*-*]: Skip.
* c-c++-common/analyzer/flex-without-call-summaries.c: Same.
* c-c++-common/analyzer/out-of-bounds-1.c: Same.
* c-c++-common/analyzer/out-of-bounds-2.c: Same.
* c-c++-common/analyzer/out-of-bounds-3.c: Same.
* c-c++-common/analyzer/out-of-bounds-diagram-strcat-2.c: Same.
* c-c++-common/analyzer/out-of-bounds-diagram-strcat.c: Same.
* c-c++-common/analyzer/overlapping-buffers.c: Same.
* gcc.dg/analyzer/SARD-tc293-basic-00045-min.c: Same.
* gcc.dg/analyzer/data-model-1.c: Same.
* gcc.dg/analyzer/fd-mktemp-family.c: Same.
* gcc.dg/analyzer/mkdtemp-1.c: Same.
* gcc.dg/analyzer/mkostemp-1.c: Same.
* gcc.dg/analyzer/mkostemps-1.c: Same.
* gcc.dg/analyzer/mkstemp-1.c: Same.
* gcc.dg/analyzer/mkstemps-1.c: Same.
* gcc.dg/analyzer/mktemp-1.c: Same.
* gcc.dg/analyzer/out-of-bounds-4.c: Same.
* gcc.dg/analyzer/out-of-bounds-diagram-13.c: Same.
* gcc.dg/analyzer/out-of-bounds-diagram-15.c: Same.
* gcc.dg/analyzer/out-of-bounds-diagram-16.c: Same.
* gcc.dg/analyzer/out-of-bounds-diagram-17.c: Same.
* gcc.dg/analyzer/out-of-bounds-diagram-18.c: Same.
* gcc.dg/analyzer/out-of-bounds-diagram-19.c: Same.
* gcc.dg/analyzer/out-of-bounds-diagram-4.c: Same.
* gcc.dg/analyzer/out-of-bounds-diagram-5-ascii.c: Same.
* gcc.dg/analyzer/out-of-bounds-diagram-5-unicode.c: Same.
* gcc.dg/analyzer/out-of-bounds-diagram-7.c: Same.
* gcc.dg/analyzer/strcmp-1.c: Same.
* gcc.dg/analyzer/strcpy-1.c: Same.
* gcc.dg/analyzer/strcpy-3.c: Same.
* gcc.dg/analyzer/strcpy-4.c: Same.
* gcc.dg/analyzer/taint-read-offset-1.c: Same.
* gcc.dg/analyzer/taint-write-offset-1.c: Same.
More information about the Gcc-bugs
mailing list