From owner-freebsd-current Thu Jul 5 22: 8:38 2001 Delivered-To: freebsd-current@freebsd.org Received: from netau1.alcanet.com.au (ntp.alcanet.com.au [203.62.196.27]) by hub.freebsd.org (Postfix) with ESMTP id AAD9C37B401 for ; Thu, 5 Jul 2001 22:08:33 -0700 (PDT) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: from mfg1.cim.alcatel.com.au (mfg1.cim.alcatel.com.au [139.188.23.1]) by netau1.alcanet.com.au (8.9.3 (PHNE_22672)/8.9.3) with ESMTP id PAA18181; Fri, 6 Jul 2001 15:08:19 +1000 (EST) Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37641) with ESMTP id <01K5M5G46PK0VFBBUU@cim.alcatel.com.au>; Fri, 6 Jul 2001 15:07:50 +1000 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.11.1/8.11.1) id f66584O72222; Fri, 06 Jul 2001 15:08:04 +1000 (EST envelope-from jeremyp) Content-return: prohibited Date: Fri, 06 Jul 2001 15:08:04 +1000 From: Peter Jeremy Subject: Re: chgrp broken on alpha systems In-reply-to: ; from mjacob@feral.com on Thu, Jul 05, 2001 at 08:31:43PM -0700 To: Matthew Jacob Cc: freebsd-current@FreeBSD.ORG Mail-Followup-To: Matthew Jacob , freebsd-current@FreeBSD.ORG Message-id: <20010706150804.B506@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <20010705173831.A15043@dragon.nuxi.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2001-Jul-05 20:31:43 -0700, Matthew Jacob wrote: >Perhaps what we really need- and this is really a toolchain issues- is a >compiler that is just as stringent on i386 as on alpha? IMHO, the compiler _is_ just as stringent on i386 as Alpha (it's the same compiler). IMHO, the problem splits into two categories: Firstly, sizeof(long) (and sizeof(void *)) differ between the Alpha and the i386. Secondly, there are cases where different architectures map foo_t onto different primitive types. Both these problems are very difficult to solve using a lint-like tool running on only one architecture. As examples of the latter, a quick diff of /sys/{i386,alpha}/include/{ansi,types}.h reveals the following: i386 type Alpha type clock_t unsigned long int ptrdiff_t int long size_t unsigned int unsigned long ssize_t int long off_t __int64_t long *physaddr { int r[1]; } { long r[1]; } label_t { int [6]; } { long [10]; } vm_offset_t unsigned int unsigned long vm_ooffset_t __int64_t long vm_pindex_t unsigned int unsigned long vm_size_t unsigned int unsigned long register_t __int32_t __int64_t u_register_t __uint32_t __uint64_t intfptr_t int long uintfptr_t unsigned int unsigned long Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message