<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 --- - -Wframe-larger-than reporting should be improved"
   href="http://llvm.org/bugs/show_bug.cgi?id=18759">18759</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-Wframe-larger-than reporting should be improved
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>qcolombet@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=12021" name="attach_12021" title="A C++ file to reproduce the mangled reporting.">attachment 12021</a> <a href="attachment.cgi?id=12021&action=edit" title="A C++ file to reproduce the mangled reporting.">[details]</a></span>
A C++ file to reproduce the mangled reporting.

In r200931, we wired-up the LLVM diagnostic system into clang diagnostic
system.
However, the reported diagnostic needs more work.
Indeed, when compiling C++ code (or more generally languages that mangle
function names), the diagnostic reports mangled name as they appear in the
backend.
Moreover, no location is attached to that mangled name.

* To reproduce
clang++ -mllvm -warn-stack-size=0 bar.cpp -o bar.s -S

* Result
warning: stack size exceeded (8) in _Z9function1f [-Wframe-larger-than]
warning: stack size exceeded (8) in _Z9function1i [-Wframe-larger-than]

* Expected result
warning: bar.cpp Line 1: stack size exceeded (8) in function1
[-Wframe-larger-than]
warning: bar.cpp Line 5: stack size exceeded (8) in function1
[-Wframe-larger-than]

* Note
The need of the backend switch (-mllvm -warn-stack-size=0) is currently tracked
in <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [Linux kernel] unknown warning option: -Wframe-larger-than=2048"
   href="show_bug.cgi?id=4072">http://llvm.org/bugs/show_bug.cgi?id=4072</a></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>