This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: help: about enum


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]