From owner-freebsd-current Mon Jul 9 9:22:43 2001 Delivered-To: freebsd-current@freebsd.org Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.121.85]) by hub.freebsd.org (Postfix) with ESMTP id 99C5A37B401; Mon, 9 Jul 2001 09:22:37 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.244.104.114.Dial1.SanJose1.Level3.net [209.244.104.114]) by gull.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id JAA22316; Mon, 9 Jul 2001 09:22:34 -0700 (PDT) Message-ID: <3B49DA6E.37507A67@mindspring.com> Date: Mon, 09 Jul 2001 09:23:10 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: mjacob@feral.com Cc: obrien@FreeBSD.ORG, Kris Kennaway , Dag-Erling Smorgrav , Jim Pirzyk , freebsd-current@FreeBSD.ORG Subject: Re: chgrp broken on alpha systems References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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? > > I dunno- there used to be a flag to lint that would worn about > non-portable size casts. Is there a gcc flag that would cover most > of the heavy lifting for this on i386? Some people at work recently put the anal flags on the build tree, including "-ansi -pedantic". It was quite annoying; for one thing, ANSI doesn't permit unsigned char's to be used in bitfields, and there are a number of KAME-derived IPv6 headers that do this. So if you are going to make the compiler anal, you will need to change these to "int" and use "#pragma pack(1)" to keep the size the same. I'm not sure how happy this type of thing would be on Alpha: there may be good reason for the use of the unsigned char ("u_char") for these fields. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message