[Bug libstdc++/64798] [5 regression] g++.old-deja/g++.eh/badalloc1.C FAILs

ro at CeBiTec dot Uni-Bielefeld.DE gcc-bugzilla@gcc.gnu.org
Mon Jan 26 15:45:00 GMT 2015


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



More information about the Gcc-bugs mailing list