[llvm-bugs] [Bug 42309] New: Asm goto expected a symbol reference
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jun 18 12:00:18 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42309
Bug ID: 42309
Summary: Asm goto expected a symbol reference
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C
Assignee: unassignedclangbugs at nondot.org
Reporter: nhuck15 at gmail.com
CC: blitzrakete at gmail.com, craig.topper at gmail.com,
dgregor at apple.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, ndesaulniers at google.com,
richard-llvm at metafoo.co.uk
When compiling the following code I get an error:
int main() {
asm goto( "jmp %l[labelname]" : /* no outputs */ : /* inputs */ : /*
clobbers */ : labelname /* any labels used */ );
int a;
labelname:
a = 0;
a++;
return a;
}
test.c:2:15: error: expected a symbol reference
asm goto( "jmp %l[labelname]" : /* no outputs */ : /* inputs */ : /*
clobbers */ : labelname /* any labels used */ );
^
<inline asm>:1:8: note: instantiated into assembly here
jmp ""
^
1 error generated.
but when compiled with -no-integrated-as I do not get an error.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190618/66c35b0d/attachment.html>
More information about the llvm-bugs
mailing list