From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Windows 64 port Date: Mon, 20 Feb 2012 15:46:22 -0800 Organization: UCLA Computer Science Department Message-ID: <4F42DB4E.9010709@cs.ucla.edu> References: <20120219211800.0000558f@unknown> <834numv7js.fsf@gnu.org> <4F428780.8070902@cs.ucla.edu> <4F42B076.4030702@cs.ucla.edu> <83sji5te78.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1329781566 19141 80.91.229.3 (20 Feb 2012 23:46:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Feb 2012 23:46:06 +0000 (UTC) Cc: Eli Zaretskii , ajmr@ilovetortilladepatatas.com, emacs-devel@gnu.org To: Fabrice Popineau Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 21 00:46:05 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rzcvk-00037s-SG for ged-emacs-devel@m.gmane.org; Tue, 21 Feb 2012 00:46:05 +0100 Original-Received: from localhost ([::1]:57024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rzcvk-0003JM-BT for ged-emacs-devel@m.gmane.org; Mon, 20 Feb 2012 18:46:04 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rzcvi-0003JE-Ep for emacs-devel@gnu.org; Mon, 20 Feb 2012 18:46:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rzcve-0007X8-5k for emacs-devel@gnu.org; Mon, 20 Feb 2012 18:46:02 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:43432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rzcvc-0007WX-FW; Mon, 20 Feb 2012 18:45:56 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 3204339E800A; Mon, 20 Feb 2012 15:45:55 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jM7GmYOndOHZ; Mon, 20 Feb 2012 15:45:54 -0800 (PST) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 97E1139E8008; Mon, 20 Feb 2012 15:45:54 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 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:148687 Archived-At: On 02/20/2012 03:11 PM, Fabrice Popineau wrote: > in several places the compiler (not gcc, but msvc) inserted sign > extent instructions. I tracked them down to mismatches between > ints and intptr_t or ptrdiff_t. I fixed them by removing all > compiler warnings of this kind. OK, but we need to worry only about code that is actually wrong unless the types are changed. Extending an int to a long long is not a bug by itself, and most likely won't even lead to a bug since it cannot lose information, so most likely there's no need to worry about inserted sign-extend instructions. Even converting a long long to an int is not necessarily a bug: it's a problem only if the actual value at run-time does not fit in int range. In short, we need not worry about size mismatches in general; only mismatches that cause real problems. In this context an MSVC warning by itself does not count as a real problem.