aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Misc/backend-stack-frame-diagnostics.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-03-15Disable warning about MSVC not found.Zachary Turner1-1/+1
When this test runs on bots that are configured to default to MSVC, but MSVC isn't actually installed, we can emit a warning that MSVC is not found. Since MSVC isn't actually needed for this test to succeed, just disable this warning. llvm-svn: 297858
2016-11-10[test] Remove implicit deps on libLTO.dylib on Darwin (NFC)Vedant Kumar1-1/+1
This un-breaks the `check-clang` target. llvm-svn: 286512
2014-07-10Prevent link warnings due to -Wframe-larger-than=Alp Toker1-0/+4
Although this is nominally a -W option, we actually handle it in the driver exactly as an f-group flag that's translated directly to -mllvm. That means f_Group (and unintuitively, not W_Group) has the semantics we want to make it behave like a standard warning flag: no automatic forwarding, no warning for link invocations and compile-only. Silences diagnostics like: [691/1545] Linking CXX executable bin/llvm-diff clang-3.5: warning: argument unused during compilation: '-Wframe-larger-than=2048' (Hopefully we can move towards handling these in the frontend but that'll require some infrastructure work.) llvm-svn: 212670
2014-06-10Don't suppress backend diagnostics in system headersAlp Toker1-2/+22
Doing so would be inconsistent with the common fallback case where backend diagnostics without source locations are emitted unconditionally. llvm-svn: 210515
2014-06-09Make '-Werror=frame-larger-than=' and associated diagnostic pragmas ↵Alp Toker1-0/+10
GCC-compatible It turns out the trailing '=' really is part of the option name spelling and treating it as such gets us compatible with GCC's -Werror= and pragmas. (GCC doesn't appear to support any -Wno- form for this diagnostic but we do.) llvm-svn: 210503
2014-06-05Implement -Wframe-larger-than backend diagnosticAlp Toker1-0/+51
Add driver and frontend support for the GCC -Wframe-larger-than=bytes warning. This is the first GCC-compatible backend diagnostic built around LLVM's reporting feature. This commit adds infrastructure to perform reverse lookup from mangled names emitted after LLVM IR generation. We use that to resolve precise locations and originating AST functions, lambdas or block declarations to produce seamless codegen-guided diagnostics. An associated change, StringMap now maintains unique mangled name strings instead of allocating copies. This is a net memory saving in C++ and a small hit for C where we no longer reuse IdentifierInfo storage, pending further optimisation. llvm-svn: 210293