Re: [PATCH] portability fix for gcc.dg/strncmp-2.c testcase

2017-02-14 Thread David Edelsohn
On Tue, Feb 14, 2017 at 2:24 PM, Aaron Sawdey wrote: > On Tue, 2017-02-14 at 13:09 -0600, Segher Boessenkool wrote: >> On Tue, Feb 14, 2017 at 11:56:50AM -0600, Aaron Sawdey wrote: >> > This testcase I added failed to compile on AIX or older linux due >> > to >> > the use of aligned_alloc(). Now f

Re: [PATCH] portability fix for gcc.dg/strncmp-2.c testcase

2017-02-14 Thread Aaron Sawdey
On Tue, 2017-02-14 at 13:09 -0600, Segher Boessenkool wrote: > On Tue, Feb 14, 2017 at 11:56:50AM -0600, Aaron Sawdey wrote: > > This testcase I added failed to compile on AIX or older linux due > > to > > the use of aligned_alloc(). Now fixed to use posix_memalign if > > available, and valloc othe

Re: [PATCH] portability fix for gcc.dg/strncmp-2.c testcase

2017-02-14 Thread Segher Boessenkool
On Tue, Feb 14, 2017 at 11:56:50AM -0600, Aaron Sawdey wrote: > This testcase I added failed to compile on AIX or older linux due to > the use of aligned_alloc(). Now fixed to use posix_memalign if > available, and valloc otherwise. > > Now it compiles and passes on x86_64 (fedora 25), ppc64 (RHEL