This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: help: about enum
- From: James E Wilson <wilson at specifix dot com>
- To: "Gaurav Gautam, Noida" <gauravga at noida dot hcltech dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 01 Sep 2005 14:54:22 -0700
- Subject: Re: help: about enum
- References: <40CC5CC7CDACC048B1299C57025E330CA36B1F@HSDLNTD1110010.noida.hcltech.com>
Gaurav Gautam, Noida wrote:
> I want to know, how enums are handled in gcc. How do we map an enum value to the corresponding integer size.
Look at start_enum and finish_enum in c-decl.c.
> What does the option -fshort-enums does. Plz explain me in detail.
Look at the code in start_num and finish_enum that uses flag_short_enum.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com