[LLVMbugs] [Bug 273] NEW: [llvm-gcc] "Address of label" GCC extension not implemented
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Mar 8 17:09:54 PST 2004
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=273
Summary: [llvm-gcc] "Address of label" GCC extension not
implemented
Product: tools
Version: 1.0
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sabre at nondot.org
This is just a tracking bug that points out that we don't currently support the
'address of a label' GCC extension. This extension is often used to make
'threaded' interpreters. It would be good to support this eventually.
Here's a simple example:
---
int code[]={0,0,0,0,1};
void foo(int x) {
volatile int b;
b = 0xffffffff;
}
void bar(int *pc) {
static const void *l[] = {&&lab0, &&end};
foo(0);
goto *l[*pc];
lab0:
foo(0);
pc++;
goto *l[*pc];
end:
return;
}
int main() {
bar(code);
return 0;
}
---
-Chris
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list