[LLVMbugs] [Bug 8984] New: inline assembly warnings are treated as errors
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jan 16 10:47:20 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=8984
Summary: inline assembly warnings are treated as errors
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: cdavis at mymail.mines.edu
CC: llvmbugs at cs.uiuc.edu
A simple test case with this unimplemented CFI directive:
$ cat inline-asm.c
asm(".cfi_adjust_cfa_offset 4\n\t");
produces this:
$ clang -c inline-asm.c
<inline asm>:1:1: error: warning: ignoring directive for now
.cfi_adjust_cfa_offset 4
^
1 error generated.
It's clearly a warning, yet clang reports it as an error. Aside from the
obvious point that someone needs to finish up CFI support, I don't think that
warnings should be reported as errors unless -Werror gets passed to the
compiler.
--
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