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: [lto] RFC: How should gimple represent enums?


On Thu, Mar 12, 2009 at 5:36 PM, Diego Novillo <dnovillo@google.com> wrote:
> The temptation is to use C++'s limits, but I'm concerned that may
> produce confusion somewhere down the line with the optimizers or other
> diagnostics. ?Or should we use C's notion and treat them as ints?

The limits are a language-specific thing that the front end should check for.

But from the point of view of the middle-end, an enum value is just a
number.  So IMHO: Use ints.

Gr.
Steven


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