Date: Mon, 16 Dec 2019 18:49:21 +0100 From: Florian Weimer <fw@...eb.enyo.de> To: Rich Felker <dalias@...c.org> Cc: musl@...ts.openwall.com Subject: Re: max_align_t mess on i386 * Rich Felker: > The latter looks buggy. It's clearly supposed to be in bits, not > bytes, with some archs defining it as 64 or 128 and: > > gcc/defaults.h:#ifndef MALLOC_ABI_ALIGNMENT > gcc/defaults.h:#define MALLOC_ABI_ALIGNMENT BITS_PER_WORD > > However arm has: > > gcc/config/arm/arm.h:#define MALLOC_ABI_ALIGNMENT BIGGEST_ALIGNMENT > > which is in bytes... The target hook is in bits. The macro synthesized from that is in bytes: cpp_define_formatted (pfile, "__BIGGEST_ALIGNMENT__=%d", BIGGEST_ALIGNMENT / BITS_PER_UNIT);
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.