https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86263

            Bug ID: 86263
           Summary: [nvptx] casesi, tablejump
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tschwinge at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org, vries at gcc dot gnu.org
  Target Milestone: ---
            Target: nvptx

As of trunk r261793 "Switch other switch expansion methods into classes"
(Martin CCed, but this might have been a latent bug already?) GCC for nvptx
target fails to build its target libraries: "internal compiler error: in
emit_case_dispatch_table, at stmt.c:851".  That's emit_case_dispatch_table
complaining that neither casesi or tablejump are implemented for nvptx, which
is documented there as a requirement (is that for this code patch only, now
taken erroneously?):

       First we try "casesi".  If that
       fails, try "tablejump".   A target *must* have one of them (or both).

Reply via email to