https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86861

--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
> (In reply to Rainer Orth from comment #0)
>> Thew new 18_support/new_aligned.cc test FAILs on Solaris 10 (sparc and x86),
>> which lacks aligned_alloc in libc:
>
> Ah good, I thought that testcase might shake out some more Solaris bugs :-)
>
> Which implementation in libsupc++/new_opa.cc gets used? Is posix_memalign
> available? Or memalign?

It's memalign indeed.  posix_memalign and aligned_alloc were introduced
at different points in the Solaris 11 release series.

> I'm guessing it uses memalign, and Solaris memalign has an additional
> requirement that posix_memalign has, but GNU memalign doesn't:
>
>   The value of alignment must be a power of two and must be greater than or
>   equal to the size of a word.

Indeed: this goes back as far as Solaris 2.5.1 and still exists in 11.5.

> So maybe this will fix it:
[...]
It did indeed: bootstrapped on i386-pc-solaris2.10 where

-FAIL: 18_support/new_aligned.cc execution test
-FAIL: 20_util/memory_resource/2.cc execution test

are now gone and i386-pc-solaris2.11 (unchanged).

Thanks.
        Rainer

Reply via email to