<html>
    <head>
      <base href="http://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 --- - Don't define __x86_64__ in microsoft mode?"
   href="http://llvm.org/bugs/show_bug.cgi?id=20896">20896</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Don't define __x86_64__ in microsoft mode?
          </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>All
          </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>nicolasweber@gmx.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>v8 uses this technique to check for x32:

#if defined(__x86_64__) && !defined(__LP64__)
...
#endif

With cl.exe, this works as cl.exe doesn't define __x86_64__. With clang-cl,
this fails since clang-cl does define __x86_64__ but doesn't define __LP64__
(because Windows is LLP64).

clang-cl probably shouldn't define __x86_64__? It already defines the
cl-equivalent _M_X64.

<a href="https://codereview.chromium.org/18014003/diff/161001/src/base/build_config.h">https://codereview.chromium.org/18014003/diff/161001/src/base/build_config.h</a></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>