]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Fix up pr116034.c test for big/pdp endian [PR116061]
authorJakub Jelinek <jakub@redhat.com>
Wed, 24 Jul 2024 16:00:05 +0000 (18:00 +0200)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 28 Jul 2024 17:05:53 +0000 (19:05 +0200)
commit41886930c339c382cd4b5d9ea959590390bb0ac4
treee5adcab577c6c452111c965cba5a9cb0660f7a4f
parent00fc1169f7cea8149c2a5442d07b64615cb8b336
testsuite: Fix up pr116034.c test for big/pdp endian [PR116061]

Didn't notice the memmove is into an int variable, so the test
was still failing on big endian.

2024-07-24  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/116034
PR testsuite/116061
* gcc.dg/pr116034.c (g): Change type from int to unsigned short.
(foo): Guard memmove call on __SIZEOF_SHORT__ == 2.
gcc/testsuite/gcc.dg/pr116034.c