[LLVMbugs] [Bug 18759] New: -Wframe-larger-than reporting should be improved

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 6 10:45:07 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=18759

            Bug ID: 18759
           Summary: -Wframe-larger-than reporting should be improved
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: qcolombet at apple.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12021
  --> http://llvm.org/bugs/attachment.cgi?id=12021&action=edit
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 http://llvm.org/bugs/show_bug.cgi?id=4072

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140206/f93b4a6f/attachment.html>


More information about the llvm-bugs mailing list