https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80855
Bug ID: 80855 Summary: [nvptx] missing sorry("target cannot support label values" Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- When compilling this example: ... int main (void) { goto L2; L1: return 0; L2: { void *ptr = &&L1; goto *ptr; } } ... we see: ... test.c: In function ‘main’: test.c:2:1: sorry, unimplemented: indirect jumps are not available on this target main (void) ^~~~ ... But when we comment out the 'goto *ptr', we see: ... ptxas test.o, line 25; error : Arguments mismatch for instruction 'mov' ptxas fatal : Ptx assembly aborted due to errors nvptx-as: ptxas returned 255 exit status ... We want a similar 'sorry' message for label values.