Subject: -fshort-enums vs ARM ABI
To: None <port-arm@netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
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:
Richard?

-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>