This is the mail archive of the
mailing list for the GCC project.
Question about CASE_DROPS_THROUGH
- From: Steven Bosscher <stevenb at suse dot de>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 20 Jun 2004 15:29:48 +0200
- Subject: Question about CASE_DROPS_THROUGH
- Organization: SUSE Labs
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. */
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??