This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/80855] New: [nvptx] missing sorry("target cannot support label values"
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 May 2017 13:02:57 +0000
- Subject: [Bug target/80855] New: [nvptx] missing sorry("target cannot support label values"
- Auto-submitted: auto-generated
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.