<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 - -GS stack buffer checks are expensive"
   href="https://bugs.llvm.org/show_bug.cgi?id=38679">38679</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-GS stack buffer checks are expensive
          </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>enhancement
          </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>dmajor@mozilla.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>froydnj@gmail.com, hans@chromium.org, llvm-bugs@lists.llvm.org, rnk@google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>We recently observed that compiling Firefox with `-GS-` gives a 4-6%
improvement to our perf test suite in clang-cl builds. Adding the same flag to
MSVC builds gives a <1% improvement if anything.

Is there anything that can be done to improve clang's implementation? I found
this review (a bit old, not sure if it's still relevant)
<a href="https://reviews.llvm.org/D20346">https://reviews.llvm.org/D20346</a> that says "I think we can look into situations
where Clang emits stack guards and MSVC doesn't if that turns out to be a
problem later."

As a first guess:
<a href="https://msdn.microsoft.com/en-us/library/8dbf701c.aspx#Anchor_3">https://msdn.microsoft.com/en-us/library/8dbf701c.aspx#Anchor_3</a> describes some
limitations on the buffers that MSVC checks. I wonder if clang that into
account?</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>