From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LffL4-000517-Ap for mharc-grub-devel@gnu.org; Fri, 06 Mar 2009 14:04:06 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LffL3-00050S-2V for grub-devel@gnu.org; Fri, 06 Mar 2009 14:04:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LffL1-0004zC-JH for grub-devel@gnu.org; Fri, 06 Mar 2009 14:04:04 -0500 Received: from [199.232.76.173] (port=56796 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LffL1-0004z7-BS for grub-devel@gnu.org; Fri, 06 Mar 2009 14:04:03 -0500 Received: from c60.cesmail.net ([216.154.195.49]:58185) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1LffL0-0000mX-PF for grub-devel@gnu.org; Fri, 06 Mar 2009 14:04:02 -0500 Received: from unknown (HELO smtprelay2.cesmail.net) ([192.168.1.112]) by c60.cesmail.net with ESMTP; 06 Mar 2009 14:03:58 -0500 Received: from [192.168.0.22] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by smtprelay2.cesmail.net (Postfix) with ESMTPSA id 375D534C6D for ; Fri, 6 Mar 2009 14:03:26 -0500 (EST) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <20090306185553.GA28703@thorin> References: <49AE6756.10404@nic.fi> <1236182302.31907.11.camel@localhost> <20090304.130223.202852927.davem@davemloft.net> <200903050804.07474.ml@isaac.cedarswampstudios.org> <20090306185553.GA28703@thorin> Content-Type: text/plain Date: Fri, 06 Mar 2009 14:03:57 -0500 Message-Id: <1236366237.7680.2.camel@mj> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH 1/7]: Fix sparc64 setjmp implementation. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2009 19:04:05 -0000 On Fri, 2009-03-06 at 19:55 +0100, Robert Millan wrote: > On Thu, Mar 05, 2009 at 08:04:07AM -0500, Isaac Dupree wrote: > > > We've been using "unsigned long" for storing virtual addresses in the > > > Linux kernel for 10+ years and it works just fine. :-) > > > > and Linux kernel uses GCC compiler in precise ways > > > > I believe that ptrdiff_t is the proper standardized type for an integer the > > size of a pointer. except... it's always signed :-) > > > > Can you just use pointer types and pointer arithmetic? > > > > also, standards aside, a common way to get such a type, is "configure" script > > testing various possibilities like "unsigned long" and "unsigned long long" > > and seeing which one is the right size for the target architecture. (not sure > > if that works when cross-compiling though) > > I think we're already using longs this way in quite a few places. It's not > such a big deal IMHO. I was considering making grub_size_t long and grub_ssize_t unsigned long. I remember that it required many changes in string formats, so I didn't feel it would be justified. But we could try it again. -- Regards, Pavel Roskin