Date: Mon, 09 Jul 2001 09:23:10 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: mjacob@feral.com Cc: obrien@FreeBSD.ORG, Kris Kennaway <kris@obsecurity.org>, Dag-Erling Smorgrav <des@ofug.org>, Jim Pirzyk <Jim.Pirzyk@disney.com>, freebsd-current@FreeBSD.ORG Subject: Re: chgrp broken on alpha systems Message-ID: <3B49DA6E.37507A67@mindspring.com> References: <Pine.BSF.4.21.0107052012000.37078-100000@beppo>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B49DA6E.37507A67>