Subject: Re: -fshort-enums vs ARM ABI
To: Ben Harris <bjh21@netbsd.org>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: port-arm
Date: 02/13/2002 09:14:32
On Wed, Feb 13, 2002 at 04:44:46PM +0000, Ben Harris wrote:
> It looks like -fshort-enums (as embodied in gcc/c-decl.c::finish_enum())
> doesn't quite match the ARM ABI for enums. Specifically, finish_enum()
> makes an enum signed iff it has any negative vlaues, whereas in the ARM
> ABI, 16-bit and 32-bit enums are signed by default (and only unsigned if
> they have values > 2^15 or 2^31 respectively). This will need fixing:
> Richard?
Add a -fsigned-enum? And then enable it by default for ARM ELF?
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>