[all-commits] [llvm/llvm-project] 937671: [Clang FE] Recognize -mnop-mcount CL option (Syst...

Jonas Paulsson via All-commits all-commits at lists.llvm.org
Tue Nov 5 03:14:35 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 93767143147b7d765c6ce8123a4226d449228649
      https://github.com/llvm/llvm-project/commit/93767143147b7d765c6ce8123a4226d449228649
  Author: Jonas Paulsson <paulsson at linux.vnet.ibm.com>
  Date:   2019-11-05 (Tue, 05 Nov 2019)

  Changed paths:
    M clang/include/clang/Basic/CodeGenOptions.def
    M clang/include/clang/Basic/DiagnosticCommonKinds.td
    M clang/include/clang/Driver/Options.td
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    A clang/test/CodeGen/mnop-mcount.c

  Log Message:
  -----------
  [Clang FE]  Recognize -mnop-mcount CL option (SystemZ only).

Recognize -mnop-mcount from the command line and add a function attribute
"mnop-mcount"="true" when passed.

When this option is used, a nop is added instead of a call to fentry. This
is used when building the Linux Kernel.

If this option is passed for any other target than SystemZ, an error is
generated.

Review: Ulrich Weigand
https://reviews.llvm.org/D67763




More information about the All-commits mailing list