[LLVMbugs] [Bug 8881] New: We need warnings or errors for unsupported uses of 'asm'
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jan 1 13:56:09 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=8881
Summary: We need warnings or errors for unsupported uses of
'asm'
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Currently clang uses the asm in a local variable declaration only when that
variable is used in a asm statement. We should produce warnings when we can.
Some options:
1) Produce warnings when a variable is not use in an asm statement. This would
warn in
void foo(void) {
register unsigned long long bar asm("rax"); //Warning
}
2) Warn when a variable is used in a non asm statement. This would warn in
int foo(void) {
register unsigned long long bar asm("rax");
return bar + 1; // Warning
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list