[RFC] A new data structure for SWITCH_EXPR
Richard Kenner
kenner@vlsi1.ultra.nyu.edu
Mon Nov 8 12:24:00 GMT 2004
> 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.
More information about the Gcc
mailing list