<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 - Merge r371557 into 9.0.1"
   href="https://bugs.llvm.org/show_bug.cgi?id=43397">43397</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Merge r371557 into 9.0.1
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>9.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>release blocker
          </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>dimitry@andric.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Please merge <a href="https://reviews.llvm.org/rL371557">https://reviews.llvm.org/rL371557</a> ("When evaluating a
__builtin_constant_p conditional, always enter constant-folding mode regardless
of the original evaluation mode") into 9.0.1.

This solves an issue with bootstrapping gcc, where during the linking of
several of its "gen" tools it would error out with many undefined symbols. 
These symbol references were emitted because they were in
__builtin_constant_p() expressions, and the corresponding sources were compiled
without any optimization.

See also <<a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240629#c2">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240629#c2</a>> and
<<a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240629#c7">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240629#c7</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>