<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - clang on Solaris needs its own __cxa_atexit and __cxa_finalize functions"
   href="https://llvm.org/bugs/show_bug.cgi?id=24642">24642</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang on Solaris needs its own __cxa_atexit and __cxa_finalize functions
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.6
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Sun
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Solaris
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>stefan.teleman@oracle.com
          </td>
        </tr>

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

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This is a placeholder bug for a patch I will be submitting here very
shortly.

When building clang/llvm on Solaris with GCC >= 4.8.2, the Solaris Standard
C Library does not provide the __cxa_atexit and __cxa_finalize functions,
which are part of the Itanium C++ ABI.

I have a patch for this defect, and I will provide it here very shortly.
The patch consists of source code for __cxa_atexit and __cxa_finalize,
and a Makefile.

I don't know if this is appropriate for inclusion in the clang/llvm source
code tree, but I thought it would be useful to record it here for reference.

This bug states that this patch is for clang 3.6, but the patch is
valid for any version of clang >= 3.6.0, including the upcoming 3.7.0.

We have a number of clang and llvm patches for Solaris, and we have
every intention of contributing them to the project. This is just one
of several bugs with follow-up patches that I will be filing.

ETA for patches: I will start submitting patches - as attachments - this
week, within the next couple of days.</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>