[all-commits] [llvm/llvm-project] 0792ef: [Driver] Verify -mrecord-mcount in Driver, instead...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Dec 21 22:47:35 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0792ef72564071f21b727d0de3a14d565950290f
      https://github.com/llvm/llvm-project/commit/0792ef72564071f21b727d0de3a14d565950290f
  Author: Fangrui Song <maskray at google.com>
  Date:   2019-12-21 (Sat, 21 Dec 2019)

  Changed paths:
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/CodeGen/mnop-mcount.c
    M clang/test/CodeGen/mrecord-mcount.c
    A clang/test/Driver/mcount.c

  Log Message:
  -----------
  [Driver] Verify -mrecord-mcount in Driver, instead of CodeGen after D71627

GCC's x86 and s390 ports support -mrecord-mcount. Other ports reject the
option.

  aarch64-linux-gnu-gcc: error: unrecognized command line option ‘-mrecord-mcount’

Allowing this option can cause failures when building Linux kernel for
aarch64, powerpc64, etc, which will think the feature is available if
the clang command returns 0.




More information about the All-commits mailing list