[all-commits] [llvm/llvm-project] c02755: [cmake] Disable GCC 9's -Wpessimizing-move

Martin Storsjö via All-commits all-commits at lists.llvm.org
Mon Mar 22 06:16:14 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c027553d95fa481e873d47186e761bddc6f12d92
      https://github.com/llvm/llvm-project/commit/c027553d95fa481e873d47186e761bddc6f12d92
  Author: Martin Storsjö <martin at martin.st>
  Date:   2021-03-22 (Mon, 22 Mar 2021)

  Changed paths:
    M llvm/cmake/modules/HandleLLVMOptions.cmake

  Log Message:
  -----------
  [cmake] Disable GCC 9's -Wpessimizing-move

Similar to the existing code for disabling GCC's -Wredudant-move,
also check for the -Wpessimizing-move option and disable it if
possible.

This silences another bunch of noisy warnings when building LLVM
with GCC 9.

As noted for -Wredundant-move, the code can't be fixed to silence the
warnings while retaining support for older compilers.

Differential Revision: https://reviews.llvm.org/D98942




More information about the All-commits mailing list