Subject: -fshort-enums vs ARM ABI
To: None <>
From: Ben Harris <>
List: port-arm
Date: 02/13/2002 16:44:46
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:

Ben Harris                                                   <>
Portmaster, NetBSD/arm26               <URL:>