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: unassignedclangb...@nondot.org
Reporter: eugeni.stepa...@gmail.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs