]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: fix libctf/testsuite/libctf-lookup/multidim-array on older arches
authorBruce McCulloch <bruce.mcculloch@oracle.com>
Fri, 17 Oct 2025 13:00:25 +0000 (14:00 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 20 Oct 2025 10:22:46 +0000 (11:22 +0100)
commita2a9b6487d207fa2edefa001c71269a8e4ff58e4
treea35dec8383907f970ce6323aa8935c0d47b87c1c
parent72cb13430c49b57f6123939ec7bc8775668003a6
libctf: fix libctf/testsuite/libctf-lookup/multidim-array on older arches

This patch inverts the ordering of nelems on multidimensional arrays on
versions of gcc without the CTF_F_ARRNELEMS flag. This allows those
systems which run older gcc to pass the test without modification to the
multidim-array.lk file.

libctf/ChangeLog:

* testsuite/libctf-lookup/multidim-array.c: Test fixes.
libctf/testsuite/libctf-lookup/multidim-array-ctf.c
libctf/testsuite/libctf-lookup/multidim-array.c
libctf/testsuite/libctf-lookup/multidim-array.lk