<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 - -mlong-double-64/80/128 documentation incomplete"
   href="https://bugs.llvm.org/show_bug.cgi?id=43666">43666</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-mlong-double-64/80/128 documentation incomplete
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Documentation
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>General docs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>tydeman@tybor.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Assuming that clang is implementing the same as gcc, the documentation of
-mlong-double-64/80/128 in
<a href="https://clang.llvm.org/docs/ClangCommandLineReference.html">https://clang.llvm.org/docs/ClangCommandLineReference.html</a> fails to mention
that changing the size of long double does NOT change the ABI.  Therefore,
calls to functions that use long doubles, eg, <math.h>, scanf(), printf(), ...,
will produce strange results.

gcc documentation has: 
Warning: if you override the default value for your target ABI,
           this changes the size of structures and arrays containing "long
           double" variables, as well as modifying the function calling
           convention for functions taking "long double".  Hence they are
           not binary-compatible with code compiled without that switch.</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>