[all-commits] [llvm/llvm-project] de8deb: [clang][PPC] Supporting -mcpu=405

Qiongsi Wu via All-commits all-commits at lists.llvm.org
Thu Dec 15 07:56:47 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: de8deb5189c948db89c753ff2dff65b8e7840e8b
      https://github.com/llvm/llvm-project/commit/de8deb5189c948db89c753ff2dff65b8e7840e8b
  Author: Qiongsi Wu <qiongsiwu at gmail.com>
  Date:   2022-12-15 (Thu, 15 Dec 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Arch/PPC.cpp
    M clang/test/Driver/ppc-cpus.c

  Log Message:
  -----------
  [clang][PPC] Supporting -mcpu=405

The  ClangBuiltLinux  project relies on `-mcpu=405`. Before https://reviews.llvm.org/D139720, `clang` treated `-mcpu=405` implicitly in the same way as `-mcpu=generic`, because `405` was an unknown value and `clang` did not validate unknown input values. https://reviews.llvm.org/D139720 added the validation of `-mcpu` input value, and `clang` now generates an error with `-mcpu=405`. For further details of the problem, see https://github.com/ClangBuiltLinux/linux/issues/1771.

This patch adds support of `-mcpu=405` explicitly, and treats it as an equivalent of `-mcpu=generic`.

Reviewed By: nemanjai

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




More information about the All-commits mailing list