https://bugs.llvm.org/show_bug.cgi?id=37338
Bug ID: 37338
Summary: Wrong (confusing) diagnostic messages for unsatisfied
__target__ function attributes
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangb...@nondot.org
Reporter: gabor.bue...@intel.com
CC: llvm-bugs@lists.llvm.org
Steps to reproduce
==================
Compile the following source (without avx512f, or avx2 enabled):
static inline void __attribute__((__always_inline__, __target__("avx512f")))
x(void)
{
}
int main(void)
{
x();
}
Actual results
==============
foo.c:7:2: error: always_inline function 'x' requires target feature 'avx2',
but would be inlined into function 'main' that is compiled without support for
'avx2'
x();
^
1 error generated.
Expected Results
================
foo.c:7:2: error: always_inline function 'x' requires target feature 'avx512f',
but would be inlined into function 'main' that is compiled without support for
'avx512f'
x();
^
1 error generated.
--
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