]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use fixed-width types in allocation size tests
authorTim Lange <mail@tim-lange.me>
Sun, 3 Jul 2022 01:22:30 +0000 (03:22 +0200)
committerTim Lange <mail@tim-lange.me>
Sun, 3 Jul 2022 01:26:05 +0000 (03:26 +0200)
commitb5c3dd3df381896b09fa76b52cd7a49b9b24afb3
treeb534b104b06082b0f68b60c9b6a0d28358f5d918
parentd86a20ee8bed8840d39ab781c935a411e28fa0b6
Use fixed-width types in allocation size tests

The patch changes the types inside the tests for the allocation size
checker to fixed-width types of stdint.h to account for different
architectures with different type widths.

2022-07-03  Tim Lange  <mail@tim-lange.me>

gcc/testsuite/ChangeLog:

* gcc.dg/analyzer/allocation-size-1.c: Use fixed-length types.
* gcc.dg/analyzer/allocation-size-2.c: Likewise.
* gcc.dg/analyzer/allocation-size-3.c: Likewise.
* gcc.dg/analyzer/allocation-size-4.c: Likewise.
* gcc.dg/analyzer/allocation-size-5.c: Likewise.
gcc/testsuite/gcc.dg/analyzer/allocation-size-1.c
gcc/testsuite/gcc.dg/analyzer/allocation-size-2.c
gcc/testsuite/gcc.dg/analyzer/allocation-size-3.c
gcc/testsuite/gcc.dg/analyzer/allocation-size-4.c
gcc/testsuite/gcc.dg/analyzer/allocation-size-5.c