Fix tests for 16-bit int.
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Mon, 26 Nov 2018 21:39:51 +0000 (21:39 +0000)
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>
Mon, 26 Nov 2018 21:39:51 +0000 (21:39 +0000)
commit50e99db39196a0567e844f35ce1cd0f36d066b8f
treeaa938542cb18eed84b53757535fc514d405e1ca7
parent571bbd0d48d5872eacbd0b681fce6e1ae754520b
Fix tests for 16-bit int.

2018-11-26  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

Fix tests for 16-bit int.

gcc/testsuite/ChangeLog:

* c-c++-common/Warray-bounds-3.c (test_strcpy_bounds): Use long instead
of int if __SIZEOF_INT__ == 2.
* c-c++-common/Wrestrict.c: Test memcpy range with smaller length when
__SIZEOF_SIZE_T < 4.
* c-c++-common/rotate-8.c: Define smaller "large" constant when
__SIZEOF_INT__ == 2.
* gcc.dg/pr53037-1.c: Add dg-require-effective-target int32.
* gcc.dg/pr53037-2.c: Likewise.
* gcc.dg/pr53037-3.c: Likewise.
* gcc.dg/pr85512.c: Likewise.
* gcc.dg/pr59963-2.c: Add dg-warning for int16.
* gcc.dg/sancov/cmp0.c: Explicitly use __INT32_TYPE__ instead of int.
* gcc.dg/tree-ssa/addadd.c: Fix dg-final directives for int16.
* gcc.dg/tree-ssa/pr79327-2.c: Likewise.
* gcc.dg/tree-ssa/builtin-sprintf-2.c: Filter out invalid tests for
int16.
* gcc.dg/tree-ssa/builtin-sprintf-warn-10.c: Update sizes in dg-warning
directives for int16.

From-SVN: r266489
14 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Warray-bounds-3.c
gcc/testsuite/c-c++-common/Wrestrict.c
gcc/testsuite/c-c++-common/rotate-8.c
gcc/testsuite/gcc.dg/pr53037-1.c
gcc/testsuite/gcc.dg/pr53037-2.c
gcc/testsuite/gcc.dg/pr53037-3.c
gcc/testsuite/gcc.dg/pr59963-2.c
gcc/testsuite/gcc.dg/pr85512.c
gcc/testsuite/gcc.dg/sancov/cmp0.c
gcc/testsuite/gcc.dg/tree-ssa/addadd.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-2.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-10.c
gcc/testsuite/gcc.dg/tree-ssa/pr79327-2.c