<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:jfb@google.com" title="JF Bastien <jfb@google.com>"> <span class="fn">JF Bastien</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - le32-unknown-nacl target does not optimize simple struct return values as primitive returns"
   href="http://llvm.org/bugs/show_bug.cgi?id=18863">bug 18863</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>INVALID
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - le32-unknown-nacl target does not optimize simple struct return values as primitive returns"
   href="http://llvm.org/bugs/show_bug.cgi?id=18863#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - le32-unknown-nacl target does not optimize simple struct return values as primitive returns"
   href="http://llvm.org/bugs/show_bug.cgi?id=18863">bug 18863</a>
              from <span class="vcard"><a class="email" href="mailto:jfb@google.com" title="JF Bastien <jfb@google.com>"> <span class="fn">JF Bastien</span></a>
</span></b>
        <pre>I think this is part of the le32-*-* behavior, and talking to jvoung/dschuff it
sounds like we initially wanted to allow struct returns in PNaCl but then
removed struct types to simplify things, so in PNaCl structs with a single
integer get transformed to a single integers in a later pass. In NaCl there is
no ABI issue (the IRT is the only external consumer of the ABI adn we build it
ourselves). Same stands for Emscripten.

It therefore seems like changing Clang to emit int returns when returning a
struct with a single integer in le32-*-* mode is acceptable.</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>