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: Request of new __attribute__ for switch statements (elimination of the bounds check)


On Tue, Oct 15, 2002 at 06:02:30PM -0700, Dale Johannesen wrote:
> I have.  However, it was a switch on (x&7) with 8 cases, not an enum.
> I do not think new syntax is the right way to fix this case, which
> demonstrates an optimizer deficiency.

I agree.  And it does seem like we shouldn't need VRP to handle
the cases where a small type or a range-limiting operation (such
as & or %) is used in the switch selector directly.


r~


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