[all-commits] [llvm/llvm-project] 6aaf4f: Bring our handling of -Wframe-larger-than more in ...

Richard Smith via All-commits all-commits at lists.llvm.org
Thu Jun 17 20:29:37 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6aaf4fa2885600b0e31042071ad06f78218ab0f2
      https://github.com/llvm/llvm-project/commit/6aaf4fa2885600b0e31042071ad06f78218ab0f2
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2021-06-17 (Thu, 17 Jun 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticFrontendKinds.td
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/Wframe-larger-than.c
    M clang/test/Frontend/backend-diagnostic.c
    M clang/test/Misc/backend-stack-frame-diagnostics.cpp

  Log Message:
  -----------
  Bring our handling of -Wframe-larger-than more in line with GCC.

Support -Wno-frame-larger-than (with no =) and make it properly
interoperate with -Wframe-larger-than. Reject -Wframe-larger-than with
no argument.

We continue to support Clang's old spelling, -Wframe-larger-than=, for
compatibility with existing users of that facility.

In passing, stop the driver from accepting and ignoring
-fwarn-stack-size and make it a cc1-only flag as intended.




More information about the All-commits mailing list