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

--- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> --- Comment #1 from rguenther at suse dot de <rguenther at suse dot de> ---
[...]
> Does malloc return 8-byte aligned memory?  Is __alignof__

It does, according to libc sources exactly for the case at hand:

 * Alignment (ALIGN) changed to 8 for SPARC ldd/std.

>       struct free_entry {
>         std::size_t size;
>         free_entry *next;
>       };
>
> less than 8?

Yup: 4 in the (failing) 32-bit case.

    Rainer

Reply via email to