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: [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.


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