x86_64: Should the -mavx* options affected __alignof__ (max_align_t)?
Jakub Jelinek
jakub@redhat.com
Thu Apr 2 13:52:00 GMT 2015
On Thu, Apr 02, 2015 at 01:43:28PM +0200, Florian Weimer wrote:
> But it is dubious to require that, say, strdup ("example") returns a
> pointer which is 16-byte-aligned, too.
>
> What is missing, it seems to me, is the qualification that for the
> pointer returned by malloc, the alignment requirements only of those
> types whose size does not exceed the malloc argument argument need to be
> considered.
Why? The standard requires that it is aligned even for the smaller sizes, and
glibc malloc honors that. Why do you want to change it all of sudden?
Jakub
More information about the Gcc
mailing list