analyzer: fix testsuite issues seen with mingw [PR102052]
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 9 Feb 2022 22:55:55 +0000 (17:55 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 10 Feb 2022 14:13:46 +0000 (09:13 -0500)
commit8383d41d704571d7ca234c7d2f551b7b69255194
tree2e8a589936babffab8164ad9f1d2a5d5c94edadf
parent3d7341cd731247c2ff6709a000837a6c924247f3
analyzer: fix testsuite issues seen with mingw [PR102052]

gcc/testsuite/ChangeLog:
PR analyzer/102052
* gcc.dg/analyzer/fields.c (size_t): Use __SIZE_TYPE__ rather than
hardcoding long unsigned int.
* gcc.dg/analyzer/gzio-3.c (size_t): Likewise.
* gcc.dg/analyzer/gzio-3a.c (size_t): Likewise.
* gcc.dg/analyzer/pr98969.c (test_1): Use __UINTPTR_TYPE__ rather
than long int.
(test_2): Likewise.
* gcc.dg/analyzer/pr99716-2.c (test_mountpoint): Use "rand" rather
than "random".
* gcc.dg/analyzer/pr99774-1.c (size_t): Use __SIZE_TYPE__ rather
than hardcoding long unsigned int.
* gcc.dg/analyzer/strndup-1.c: Add MinGW to targets that don't
implement strndup.
* gcc.dg/analyzer/zlib-5.c (size_t): Use __SIZE_TYPE__ rather
than hardcoding long unsigned int.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/testsuite/gcc.dg/analyzer/fields.c
gcc/testsuite/gcc.dg/analyzer/gzio-3.c
gcc/testsuite/gcc.dg/analyzer/gzio-3a.c
gcc/testsuite/gcc.dg/analyzer/pr98969.c
gcc/testsuite/gcc.dg/analyzer/pr99716-2.c
gcc/testsuite/gcc.dg/analyzer/pr99774-1.c
gcc/testsuite/gcc.dg/analyzer/strndup-1.c
gcc/testsuite/gcc.dg/analyzer/zlib-5.c