<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 - Building Solaris/sparcv9 with -O3 fPIC shows many test failures"
   href="https://bugs.llvm.org/show_bug.cgi?id=47304">47304</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Building Solaris/sparcv9 with -O3 fPIC shows many test failures
          </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>Solaris
          </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>Backend: Sparc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>ro@gcc.gnu.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>46725
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Building both the 11.0.0 branch and master with either g++ or clang++ -O3 -fPIC
(a regular Release build) shows a large number of failures.  For the build with
g++, this has been traced to gcc violating the SPARCv9 TLS spec and ld
generating
wrong code for the wrong input.

For the gcc side, is has been determined that the issue can be worked around by
compiling with -O -fPIC instead.

Even with that workaround in place, there are still a large number of failures
in a 2-stage build that vanish if stage 2 is run with -O -fPIC, too:

2-stage Release build, gcc -O -fPIC in stage 1: 4581 failures
2-stage Release build, gcc -O -fPIC in stage 2, clang -O -fPIC in stage 2: 1325
failures

2-stage RelWithDebInfo, -O as before: 140 failures (currently broken due to Bug
47303)

The workaround patch has been posted as <a href="https://reviews.llvm.org/D85630">https://reviews.llvm.org/D85630</a> and
would
be good to have in tree (both master and 11.0.0 branch) while real fixes are
being developed.</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [meta] 11.0.0 Release Blockers"
   href="https://bugs.llvm.org/show_bug.cgi?id=46725">Bug 46725</a>] [meta] 11.0.0 Release Blockers
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>