Re: [PATCH, GCC] Fix conflicting posix_memalign declaration error

2016-10-28 Thread Szabolcs Nagy
On 28/10/16 11:38, Bernd Schmidt wrote: > On 10/27/2016 10:47 PM, Caroline Tice wrote: >> >> * config/i386/pmm_malloc.h (posix_memalign): Add ifdefs to only >> decorate the declaration with 'throw()' if __GLIBC__ is defined. > > I seem to recall a similar patch being submitted by

Re: [PATCH, GCC] Fix conflicting posix_memalign declaration error

2016-10-28 Thread Bernd Schmidt
On 10/27/2016 10:47 PM, Caroline Tice wrote: * config/i386/pmm_malloc.h (posix_memalign): Add ifdefs to only decorate the declaration with 'throw()' if __GLIBC__ is defined. I seem to recall a similar patch being submitted by Szabolcs. My suggestion at the time was to move _m

[PATCH, GCC] Fix conflicting posix_memalign declaration error

2016-10-27 Thread Caroline Tice
The posix_memalign declaration in gcc/i386/config/pmm_malloc.h is decorated with 'throw ()', which occasionally causes declaration conflict errors (some header files, not part of GCC, that declare posix_memalign, do not have the throw decoration). An example of this can be seen at https://github.c