[LLVMbugs] [Bug 17132] New: LLVM Toolset xmmintrin.h defines _m_pshufw as a macro, but the VS STL tries to use it as an identifier

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 6 13:03:39 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=17132

            Bug ID: 17132
           Summary: LLVM Toolset xmmintrin.h defines _m_pshufw as a macro,
                    but the VS STL tries to use it as an identifier
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: wolfeinstein at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The relevant compiler error is as follows:

1>  G:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\include\intrin.h:527:20: error: expected unqualified-id
1>  __MACHINEX86(__m64 _m_pshufw(__m64, int))
1>                     ^
1>  G:\Program Files (x86)\LLVM
3.4.svn\msbuild-bin\..\lib\clang\3.4\include\xmmintrin.h:986:19: note: expanded
from macro '_m_pshufw'
1>  #define _m_pshufw _mm_shuffle_pi16
1>                    ^
1>  G:\Program Files (x86)\LLVM
3.4.svn\msbuild-bin\..\lib\clang\3.4\include\xmmintrin.h:749:32: note: expanded
from macro '_mm_shuffle_pi16'
1>  #define _mm_shuffle_pi16(a, n) __extension__ ({ \
1>                                 ^
1>  G:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\include\intrin.h:68:29: note: expanded from macro '__MACHINE'
1>  #define __MACHINE(X)        X;

The core issue here is that at intrin.h:527, the VS headers attempt to declare
_m_pshufw as a function, whereas xmmintrin.h defines it as a macro to something
else, breaking the declaration.

-- 
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/20130906/419e705e/attachment.html>


More information about the llvm-bugs mailing list