This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
question on GCC compiler and enum sizes
- From: kevin dot baltes at gm dot com
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 22 Feb 2005 10:23:31 -0500
- Subject: question on GCC compiler and enum sizes
To whom it may concern:
The common software we write at GM Powertrain is not dependent on the
target processor. Therefore, there is no machine specified in the GCC
compiler options. However, the target compilers (not GCC) have options to
force an enum to be 16 bits (signed). Is there a similar option for GCC?
We are using version 3.02. The option "-fshort-enums" will not work as
this will force most enums to be 8 bits.
Regards,
Kevin Baltes
Software Build Tools Development Team