[LLVMbugs] [Bug 13119] New: Distinguish between unsupported vs. unused arguments
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jun 15 10:13:47 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13119
Bug #: 13119
Summary: Distinguish between unsupported vs. unused arguments
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Given an empty t.cpp, I get the same warning for this:
$ clang -arch x86_64 -c -mthumb t.cpp
clang: warning: argument unused during compilation: '-mthumb'
where -mthumb doesn't make sense because it doesn't apply on x86-64 as this:
$ clang -arch armv7 -c -mthumb-my-nose t.cpp
clang: warning: argument unused during compilation: '-mthumb-my-nose'
where -mthumb-my-nose is a completely unknown option.
It would be useful to distinguish these two cases with different warning
messages.
--
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