[LLVMbugs] [Bug 5173] New: [Diagnosis RFE] - Clang should have a diagnosis for unused parameters in inline asm statement .
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Oct 12 22:20:52 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=5173
Summary: [Diagnosis RFE] - Clang should have a diagnosis for
unused parameters in inline asm statement.
Product: clang
Version: trunk
Platform: PC
OS/Version: Solaris
Status: NEW
Severity: enhancement
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: eocallaghan at auroraux.org
CC: llvmbugs at cs.uiuc.edu
G'Day,
As of trunk 83939.
Clang should have a diagnosis for unused parameters in inline asm statement.
Versions:
-bash-3.2$ /opt/SUNWspro/bin/cc -V
cc: Sun C 5.9 SunOS_i386 Patch 124868-08 2008/11/25
-bash-3.2$ /opt/gcc4/bin/gcc --version
gcc (GCC) 4.2.4
-bash-3.2$ /opt/clang/bin/clang --version
clang version 1.1 (trunk 83939)
Outputs:
-bash-3.2$ /opt/clang/bin/clang t.c
-bash-3.2$ /opt/gcc4/bin/gcc t.c
-bash-3.2$ /opt/SUNWspro/bin/cc t.c
"t.c", line 6: warning: parameter in inline asm statement unused: %1
Test Case:
-bash-3.2$ cat t.c
int main() {
int a,b;
asm ( "nop;"
:"=%c" (a)
: "r" (b)
);
return 0;
}
Cheers,
Edward.
--
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