<html>
    <head>
      <base href="http://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 --- - -print-multi-directory prints several instead of one"
   href="http://llvm.org/bugs/show_bug.cgi?id=21360">21360</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-print-multi-directory prints several instead of one
          </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>Linux
          </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>roland@hack.frob.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dschuff@google.com, kcc@google.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The purpose of -print-multi-directory is to determine which one of the multilib
subdirs the particular set of other flags will cause to be searched.  It's
useless if it doesn't select the right one.  Clang just prints all the
possibilities, separate by newlines.  This completely defeats the whole purpose
of the flag, and breaks all scripts that use it.

clang version 3.6.0 (218707)
Target: x86_64-unknown-linux-gnu

$ gcc -print-multi-directory
.
$ gcc -m64 -print-multi-directory
.
$ gcc -m32 -print-multi-directory
32
$ gcc -mx32 -print-multi-directory
x32
$ clang -print-multi-directory
.
32
x32
$ clang -m64 -print-multi-directory
.
32
x32
$ clang -m32 -print-multi-directory
.
32
x32
$ clang -mx32 -print-multi-directory
.
32
x32
$</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>