This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [lto] RFC: How should gimple represent enums?
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: Diego Novillo <dnovillo at google dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 12 Mar 2009 17:46:37 +0100
- Subject: Re: [lto] RFC: How should gimple represent enums?
- References: <b798aad50903120936i22274234p2e77a1b4a74be8fe@mail.gmail.com>
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