[all-commits] [llvm/llvm-project] 1d23f6: [Driver] Ignore unimplemented -mtune= for ARM/PowerPC

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Jul 25 15:05:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d23f6c5a4f6ebb101c282f8f506588fe4d9e92f
      https://github.com/llvm/llvm-project/commit/1d23f6c5a4f6ebb101c282f8f506588fe4d9e92f
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-07-25 (Mon, 25 Jul 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Arch/ARM.cpp
    M clang/lib/Driver/ToolChains/Arch/PPC.cpp

  Log Message:
  -----------
  [Driver] Ignore unimplemented -mtune= for ARM/PowerPC

This compensates for 8f0c901c1a172313a32bc06a1fcface76cd1220f which enabled
-Wunused-command-line-argument for unimplemented -mtune= in the generic code.
Ignoring -mtune= appears to be longstanding and the error-free behavior in the
presence of -Werror is unfortunately relied on by the Linux kernel's arm and
powerpc ports. Ignore the warnings for the upcoming 15.0.0 branch and will
implement functionality to fill the test gap soon.

Link: https://github.com/ClangBuiltLinux/linux/issues/1674




More information about the All-commits mailing list