This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] A new data structure for SWITCH_EXPR
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: stevenb at suse dot de
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 8 Nov 04 07:08:19 EST
- Subject: Re: [RFC] A new data structure for SWITCH_EXPR
> First, I'd like to point out that use of the "case A ... B:" feature
> is extremely rare, at least when it's via the GNU extension to C.
> Perhaps other languages use it more frequently.
Yup. It is very common in Fortran, for example.
And Ada.
How so? We now bundle consecutive individual cases that go to the same
case label in case ranges. This is extremely common in non-GNU C, think
about regular expressions for example.
Dropping CASE_HIGH is a bad idea IMHO.
I agree.