From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/15036 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Florian Weimer Newsgroups: gmane.linux.lib.musl.general Subject: Re: max_align_t mess on i386 Date: Mon, 16 Dec 2019 18:49:21 +0100 Message-ID: <87h82017q6.fsf@mid.deneb.enyo.de> References: <20191214151932.GW1666@brightrain.aerifal.cx> <20191215182242.GA1666@brightrain.aerifal.cx> <20191216155622.GC1666@brightrain.aerifal.cx> <87tv601awd.fsf@mid.deneb.enyo.de> <20191216174530.GD1666@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="198595"; mail-complaints-to="usenet@blaine.gmane.org" Cc: musl@lists.openwall.com To: Rich Felker Original-X-From: musl-return-15052-gllmg-musl=m.gmane.org@lists.openwall.com Mon Dec 16 18:50:27 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iguVn-000pV7-6E for gllmg-musl@m.gmane.org; Mon, 16 Dec 2019 18:50:27 +0100 Original-Received: (qmail 13627 invoked by uid 550); 16 Dec 2019 17:50:25 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 13606 invoked from network); 16 Dec 2019 17:50:24 -0000 In-Reply-To: <20191216174530.GD1666@brightrain.aerifal.cx> (Rich Felker's message of "Mon, 16 Dec 2019 12:45:30 -0500") Xref: news.gmane.org gmane.linux.lib.musl.general:15036 Archived-At: * 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);