[llvm-bugs] [Bug 24990] New: clang fails do compile if tmmintrin.h is included

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 29 14:44:50 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24990

            Bug ID: 24990
           Summary: clang fails do compile if tmmintrin.h is included
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: llvm at bobbyperu.info
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

GCC, MSVC and ICC all allow to include tmmintrin.h even if -mssse3 isn't
specified, clang however is the one odd out:

$ clang -c -o /dev/null -include tmmintrin.h -xc /dev/null
In file included from <built-in>:316:
In file included from <command line>:1:
/lib/clang/3.7.0/include/tmmintrin.h:28:2: error: "SSSE3 instruction set not
enabled"
#error "SSSE3 instruction set not enabled"


$ gcc -c -o /dev/null -include tmmintrin.h -xc /dev/null; echo $?
0


Since clang is mostly interpolatable with gcc it would be nice if this got
fixed.

-- 
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/20150929/7f7c97d3/attachment.html>


More information about the llvm-bugs mailing list