question on GCC compiler and enum sizes

kevin.baltes@gm.com kevin.baltes@gm.com
Wed Feb 23 11:06:00 GMT 2005


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




More information about the Gcc-help mailing list