<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 --- - Fix c++ support on recent DragonFly BSD releases"
   href="https://llvm.org/bugs/show_bug.cgi?id=25597">25597</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Fix c++ support on recent DragonFly BSD releases
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>DragonFly BSD
          </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>Driver
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>draco@marino.st
          </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>Created <span class=""><a href="attachment.cgi?id=15328" name="attach_15328" title="Update clang driver to support current DragonFly BSD out of the box">attachment 15328</a> <a href="attachment.cgi?id=15328&action=edit" title="Update clang driver to support current DragonFly BSD out of the box">[details]</a></span>
Update clang driver to support current DragonFly BSD out of the box

Clang support for DragonFly BSD is lagging a bit, resulting in poor support for
c++.

DragonFlyBSD is unique in that it has two base compilers.  At the time of the
last Clang update for DragonFly, these compilers were GCC 4.4 and GCC 4.7
(default).

With DragonFly Release 4.2, GCC 4.4 was replaced with GCC 5.0, partially
because the C++11 support of GCC 4.7 was incomplete.  The DragonFly project
will Release version 4.4 soon.

This patch updates the Clang driver to use libstdc++ from GCC 5.2  The support
for falling back to the alternate compiler was removed for two reasons:

1) The last release to use GCC 4.7 is DF 4.0 which has already reached EOL
2) GCC 4.7 libstdc++ is insufficient for many "ports"

Therefore, I think it is reasonable that the development version of clang
expects GCC 5.2 to be in place and not try to fall back to another compiler.

The attached patch will do this.  The Tools.cpp file was signficantly modified
to fix the linking which had been changed somewhere along the line.  The rest
of the changes should be self-explanatory.</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>