Re: [PATCH, testsuite] memchr-1.c wide char and AIX

2018-10-10 Thread Martin Sebor
On 10/06/2018 04:13 PM, David Edelsohn wrote: On Fri, Oct 5, 2018 at 5:47 PM Martin Sebor wrote: David, Attached is a patch to conditionalize the memchr-1.c test to pass even with 2-byte wchar_t's. It also adds a compile only test to verify memchr with -fnarrow-wchar. I verified the changes

Re: [PATCH, testsuite] memchr-1.c wide char and AIX

2018-10-06 Thread David Edelsohn
On Fri, Oct 5, 2018 at 5:47 PM Martin Sebor wrote: > > David, > > Attached is a patch to conditionalize the memchr-1.c test > to pass even with 2-byte wchar_t's. It also adds a compile > only test to verify memchr with -fnarrow-wchar. I verified > the changes on LE x86_64-linux and BE powerpc64-

Re: [PATCH, testsuite] memchr-1.c wide char and AIX

2018-10-05 Thread Martin Sebor
David, Attached is a patch to conditionalize the memchr-1.c test to pass even with 2-byte wchar_t's. It also adds a compile only test to verify memchr with -fnarrow-wchar. I verified the changes on LE x86_64-linux and BE powerpc64-linux but if you could confirm they also work on AIX that would

Re: [PATCH, testsuite] memchr-1.c wide char and AIX

2018-10-05 Thread Martin Sebor
On 10/05/2018 12:54 PM, David Edelsohn wrote: memchr-1.c tests for char (test_narrow) and wchar (test_wide). The wide character test assumes 32 bit wide character, while 32 bit AIX uses 16 bit wide character. This assumption causes the wide character part of the test to fail in 32 bit mode on A