Re: [arm-gnu] how to set sizeof enum = sizeof int
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] how to set sizeof enum = sizeof int



Je wrote:
I use gcc4.2.2 and it complies the program as enum= 4bytes, but use codesourcery g++, enum size is only 1 byte. and complier seems doesn't recognize --enums_is_int

The compiler will generate a enum size small enough to hold the value of all enumerators. What is the actual problem?

The option --enum_is_int is available only in RealView, and is not recommended for general use.

Cheers,
Carlos.
--
Carlos O'Donell
CodeSourcery
carlos@xxxxxxxxxxxxxxxx
(650) 331-3385 x716