From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: The --with-wide-int build and Lisp_Sub_Char_Table assertion Date: Mon, 12 Jan 2015 18:58:50 +0100 Message-ID: <87387fanj9.fsf@igel.home> References: <83wq4s3qtb.fsf@gnu.org> <54B3FE61.5090908@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421085562 8135 80.91.229.3 (12 Jan 2015 17:59:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Jan 2015 17:59:22 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 12 18:59:14 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YAjGk-0002E4-Hz for ged-emacs-devel@m.gmane.org; Mon, 12 Jan 2015 18:59:14 +0100 Original-Received: from localhost ([::1]:35798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAjGk-0002ag-3c for ged-emacs-devel@m.gmane.org; Mon, 12 Jan 2015 12:59:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAjGW-0002aG-FU for emacs-devel@gnu.org; Mon, 12 Jan 2015 12:59:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAjGV-0004yd-Gr for emacs-devel@gnu.org; Mon, 12 Jan 2015 12:59:00 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:57651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAjGR-0004xO-RS; Mon, 12 Jan 2015 12:58:55 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3kLjMv534cz3hj70; Mon, 12 Jan 2015 18:58:51 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3kLjMv3ZNxzvh20; Mon, 12 Jan 2015 18:58:51 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id t7Gj5jqzHcfb; Mon, 12 Jan 2015 18:58:50 +0100 (CET) X-Auth-Info: 7rTwRfcacKhkhDwRfzTVxdsEKdGj5VltHgFPtG/aqk/L+n7WYlIrJpNTAXdBtYMu Original-Received: from igel.home (host-188-174-215-37.customer.m-online.net [188.174.215.37]) by mail.mnet-online.de (Postfix) with ESMTPA; Mon, 12 Jan 2015 18:58:50 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 5A84C2C33A7; Mon, 12 Jan 2015 18:58:50 +0100 (CET) X-Yow: HOW could a GLASS be YELLING?? In-Reply-To: <54B3FE61.5090908@yandex.ru> (Dmitry Antipov's message of "Mon, 12 Jan 2015 20:03:29 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.18.0.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181185 Archived-At: Dmitry Antipov writes: > On 01/12/2015 07:29 PM, Eli Zaretskii wrote: > >> In the 32-bit MinGW configuration with wide integers, we have: >> >> offsetof (struct Lisp_Sub_Char_Table, contents) = 16 >> offsetof (struct Lisp_Sub_Char_Table, depth) = 4 >> word_size = 8 > > OK, but... > >> header_size = 8 >> offsetof(struct Lisp_Vector, contents) = 8 > > ==> sizeof(ptrdiff_t) is 8 in a 32-bit configuration? Looks pretty > strange. Or, if sizeof(ptrdiff_t) is 4, what is sizeof(struct vectorlike_header)? > IIUC it should be 4, and so header_size should be 4 too... header_size includes the padding between Lisp_Vector.header and Lisp_Vector.contents. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."