<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - [ms_abi] Big structures arguments are not passed correctly (x64)"
   href="https://bugs.llvm.org/show_bug.cgi?id=33834">33834</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[ms_abi] Big structures arguments are not passed correctly (x64)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.9
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>piotr@codeweavers.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>An example of function that will be called incorrectly:

typedef struct {
    int big[8];
} big;

extern void __attribute__((ms_abi)) call_func_with_struct_args(big a, big b,
big c, big d, big e);

...
big args[5];
memset(args, 0, sizeof(args));
call_func_with_struct_args(args[0], args[1], args[2], args[3], args[4]);

MSVC passes all structures indirectly (even for arguments passed on stack).
Clang passes first four arguments as pointers. Fifth argument is passed
incorrectly (this breaks some functionality in wine project).</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>