]> granicus.if.org Git - clang/commit
Prevent link warnings due to -Wframe-larger-than=
authorAlp Toker <alp@nuanti.com>
Thu, 10 Jul 2014 02:13:29 +0000 (02:13 +0000)
committerAlp Toker <alp@nuanti.com>
Thu, 10 Jul 2014 02:13:29 +0000 (02:13 +0000)
commit1c09ec25633737e0a6f576a5ced107ee52f9acae
tree628de370417772784ec575a6f884ab2868f8fa83
parent10ee1173aacfe673b36255be3dad366665298499
Prevent link warnings due to -Wframe-larger-than=

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.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212670 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
test/Misc/backend-stack-frame-diagnostics.cpp