]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix test failures for 32-bit AIX
authorJonathan Wakely <jwakely@redhat.com>
Tue, 27 May 2025 11:06:01 +0000 (12:06 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 27 May 2025 12:35:23 +0000 (13:35 +0100)
commit7fa1bd660a8a501671a84ca6421db1fc63ce8654
treefe7ced2014cf6124a09028d9d2e82563e7df3449
parent324aad35ef42c9c371cf41c42fe180b8dd698239
libstdc++: Fix test failures for 32-bit AIX

With -maix32 (the default) we only have 16-bit wchar_t so these tests
fail. The debug.cc one is because we use -fwide-exec-charset=UTF-32BE
which tries to encode each wide character as four bytes in a 2-byte
wchar_t. The format.cc one is because the clown face character can't be
encoded in a single 16-bit wchar_t.

libstdc++-v3/ChangeLog:

* testsuite/std/format/debug.cc: Disable for targets with 16-bit
wchar_t.
* testsuite/std/format/functions/format.cc: Use -DUNICODE for
targets with 32-bit wchar_t.
(test_unicode) [UNICODE]: Only run checks when UNICODE is
defined.
libstdc++-v3/testsuite/std/format/debug.cc
libstdc++-v3/testsuite/std/format/functions/format.cc