https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77735
--- Comment #3 from dave.anglin at bell dot net --- On 2016-09-27, at 8:38 PM, msebor at gcc dot gnu.org wrote: > I have reproduced the test failure with a cross-compiler for > hppa-unknown-linux-gnu. The problem is due to the c_strlen function defined > in > builtins.c accepting wide strings but not handling them correctly (in this > case, returning zero for L"1"). The problem doesn't show up in the tests on > little-endian targets because the longest strings used by the wide character > tests are 1 wide character long and the first character is in the least > significant byte. Let me look into enhancing c_strlen to handle wide > character > strings if that's doable without too much effort. If not, I'll have to > disable > the -Wformat-length warning for wide strings. It seems like this could be a problem in other situations as well. -- John David Anglin dave.ang...@bell.net