<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 - Avoid spilling the address of the saved stack guard with -fstack-protector"
   href="https://bugs.llvm.org/show_bug.cgi?id=42765">42765</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Avoid spilling the address of the saved stack guard with -fstack-protector
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Common Code Generator Code
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>francisvm@yahoo.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In <a href="https://reviews.llvm.org/D64759">https://reviews.llvm.org/D64759</a>, we avoid using a different register to
address the slot of the stack guard to be loaded before we compare it with the
original guard.

There are cases where this could still be spilled, potentially by the reg
scavenger.

A few things we could do to make this better:

* Eli Friedman suggested to make the reg scavenger aware of particularly
sensitive registers and force it to choose other registers to spill.
* Sander de Smalen suggested to always enable FP when using stack guards.</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>