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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to