[llvm-bugs] [Bug 34491] New: Invalid warning about unsupported target("thumb") attribute
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Sep 5 17:25:19 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34491
Bug ID: 34491
Summary: Invalid warning about unsupported target("thumb")
attribute
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: eugeni.stepanov at gmail.com
CC: llvm-bugs at lists.llvm.org
Any use of ARM-specific target attributes, like the following:
__attribute__((target("arm")))
unsigned long f_arm() {
return 3;
}
generates incorrect warnings like these:
warning: ignoring unsupported 'arm' in the target attribute string
[-Wignored-attributes]
__attribute__((target("arm")))
warning: ignoring unsupported 'thumb' in the target attribute string
[-Wignored-attributes]
__attribute__((target("thumb")))
while, in fact, the attribute in NOT ignored and has the desired effect.
This comes from TargetInfo::isValidFeatureName(), which simply returns false
for ARM.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170906/4ee2da54/attachment.html>
More information about the llvm-bugs
mailing list