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]

Question about CASE_DROPS_THROUGH


Hi,

There is this target macro CASE_DROPS_THROUGH that is only defined
by the vax backend:

/* Define this if the case instruction drops through after the table
   when the index is out of range.  Don't define it if the case insn
   jumps to the default label instead.  */
#define CASE_DROPS_THROUGH

Is there a different way to get the same behavior somehow without
this define (such as prefixing the switch blocks with a range
check perhaps?).  vax is the only target that defines this macro,
so there's not even a way to see if it still works properly.
(IMHO the whole vax backend should go away for that reason, but
that's a different issue).

I'm not even sure how this is supposed to work.  "Out of range" of
what range, the case range??

Gr.
Steven



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