Subject: Re: ARM ELF TODO list
To: thorpej@wasabisystems.com, Christos Zoulas <christos@zoulas.com>
From: Nick Hudson <skrll@netbsd.org>
List: port-arm
Date: 01/30/2002 08:58:42
On Tuesday 29 January 2002 5:00 pm, Jason R Thorpe wrote:
> On Tue, Jan 29, 2002 at 03:35:20PM +0000, Christos Zoulas wrote:
> > I am not an ARM or toolchain expert, but I think we should be going with
> > packed enums. My reasoning is:
>
> I think I'm with Christos and Richard on this issue.
>
> > - This is the official ARM abi. If you violate one aspect of it, you
> > might throw the whole thing out. We want to be able to use externally
> > supplied libraries, so we'll do what we have to.
> > - You can avoid the issue of library compatibility, if you never use
> > enum declarations in function arguments; use int's instead. Looking at
> > our header files, there is only a dozen or so functions that take enum
> > foo as a parameter.
I'm nervous about pkgsrc on this issue. However, I guess if we know about it
we can check.
> > - Paying attention to short enums makes the code more portable, and
> > fixing the code to work with short enums is trivial.
> > - If you really want to use enums in function parameters and maintain
> > software compatibility you can force the compiler not to pack the
> > enums.
Nick