From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: The --with-wide-int build and Lisp_Sub_Char_Table assertion Date: Mon, 12 Jan 2015 20:03:29 +0300 Message-ID: <54B3FE61.5090908@yandex.ru> References: <83wq4s3qtb.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1421082244 16559 80.91.229.3 (12 Jan 2015 17:04:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Jan 2015 17:04:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 12 18:03:59 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 1YAiPF-00011i-BC for ged-emacs-devel@m.gmane.org; Mon, 12 Jan 2015 18:03:57 +0100 Original-Received: from localhost ([::1]:35470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAiPE-0002uQ-IW for ged-emacs-devel@m.gmane.org; Mon, 12 Jan 2015 12:03:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAiOw-0002sY-1d for emacs-devel@gnu.org; Mon, 12 Jan 2015 12:03:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAiOv-0002Gr-8m for emacs-devel@gnu.org; Mon, 12 Jan 2015 12:03:37 -0500 Original-Received: from forward8l.mail.yandex.net ([84.201.143.141]:56171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAiOq-0002DM-NP; Mon, 12 Jan 2015 12:03:32 -0500 Original-Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [37.140.190.29]) by forward8l.mail.yandex.net (Yandex) with ESMTP id CD6DA1A411BA; Mon, 12 Jan 2015 20:03:30 +0300 (MSK) Original-Received: from smtp4o.mail.yandex.net (localhost [127.0.0.1]) by smtp4o.mail.yandex.net (Yandex) with ESMTP id 59C1123232BF; Mon, 12 Jan 2015 20:03:30 +0300 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id l3x55VfRM8-3TPS29VI; Mon, 12 Jan 2015 20:03:29 +0300 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1421082209; bh=f35HyOADHAwh7+slFRq8FHTHyv49abVCq39bIGF/Z9s=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=db86P7rIH7g9b/qooaMEIdfBygANnHpKRiyVlXaHyYbwYtGeOh0M7DjZTXV9/34f8 qwUsylkGe/K52EcrPoir4j/C7lh95dPWr+GPafairHPLmWR80R+hwdt6BdXlucDpAM LA3pssHSBPtufLwYOnTmPxlLTrw4LyRgwXTb8wlc= Authentication-Results: smtp4o.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 In-Reply-To: <83wq4s3qtb.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 84.201.143.141 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:181182 Archived-At: 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... Dmitry