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 Szabolcs. My suggestion 
> at the time was to move _mm_malloc
> into libgcc so that it could just include the right header.
> 

i stopped working on that patch because it seems
gcc-6 does not care about inconsistent exception
specification in this particular case any more
(even in strict standard conform mode) and thus
i could not provide a test case along the patch
which H.J.Lu asked for.

(i also think that hardwiring libc specific
knowledge here is wrong: glibc might change its
declaration, c++ code should not try to redeclare
standard c interfaces, which is just another
regression in the c++ language compared to c.)

Reply via email to