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
- To: Je <jeorama@xxxxxxxxx>
- Subject: Re: [arm-gnu] how to set sizeof enum = sizeof int
- From: Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
- Date: Fri, 05 Jun 2009 16:32:18 -0400
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