This is the mail archive of the gcc-patches@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: [PATCH] Fix overzealous folding


Eric Botcazou wrote:
Right, but they shouldn't be optimized differently!  Performance
shouldn't depend on whether I use an "int" or an int-sized enum.

That's already very likely the case.

Even if so, there's no reason to make the problem worse!


There is nothing magic about ENUMERAL_TYPE; it's just an INTEGER_TYPE with limited range. There's nothing you can do with one that you can't with the other. In fact, I think it would be entirely reasonable for the gimplifier to eliminate it in favor of INTEGER_TYPE. It's really just a front-end construct.

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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