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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs