]> 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)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 24 Jul 2024 16:37:38 +0000 (18:37 +0200)
commit69e69847e21a8d951ab5f09fd3421449564dba31
tree4232eb1ff9d1045a5aa0b337d68baf2c310f6f9d
parent6c22fe418cff57dad712c4b950638e6e2d09bd9c
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