<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - The Clang API cannot parse the MinGW 5.3.0 headers when not skipping function bodies"
   href="https://llvm.org/bugs/show_bug.cgi?id=31794">31794</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>The Clang API cannot parse the MinGW 5.3.0 headers when not skipping function bodies
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dpldobrev@protonmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I am trying to parse the MinGW headers included in Qt 5.8 for Windows MinGW. I
get tens of errors the built-in functions cannot be found. Let me list a few
examples:


C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\ia32intrin.h(41,10):
error: use of undeclared identifier '__builtin_ia32_bsrsi'
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\ia32intrin.h(104,1):
error: definition of builtin function '__rdtsc'
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\ia32intrin.h(122,10):
error: use of undeclared identifier '__builtin_ia32_rolqi'
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\ia32intrin.h(130,10):
error: use of undeclared identifier '__builtin_ia32_rolhi'; did you mean
'__builtin_ia32_korhi'?
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\ia32intrin.h(146,10):
error: use of undeclared identifier '__builtin_ia32_rorqi'; did you mean
'__builtin_ia32_korhi'?
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\ia32intrin.h(154,10):
error: use of undeclared identifier '__builtin_ia32_rorhi'; did you mean
'__builtin_ia32_korhi'?
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\xmmintrin.h(131,19):
error: use of undeclared identifier '__builtin_ia32_addss'
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\xmmintrin.h(137,19):
error: use of undeclared identifier '__builtin_ia32_subss'
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\xmmintrin.h(143,19):
error: use of undeclared identifier '__builtin_ia32_mulss'

You can see the code I use at
<a href="https://github.com/mono/CppSharp/blob/master/src/CppParser/Parser.cpp#L3915">https://github.com/mono/CppSharp/blob/master/src/CppParser/Parser.cpp#L3915</a> .
This bug is a real problem so please ask for any further information which
might help you fix it faster.
Thank you.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>