[llvm-bugs] [Bug 37338] New: Wrong (confusing) diagnostic messages for unsatisfied __target__ function attributes

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 4 04:47:11 PDT 2018


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: unassignedclangbugs at nondot.org
          Reporter: gabor.buella at intel.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180504/3eba85f4/attachment.html>


More information about the llvm-bugs mailing list