]> granicus.if.org Git - clang/commit
Do not generate calls to fentry with __attribute__((no_instrument_function))
authorManoj Gupta <manojgupta@google.com>
Fri, 2 Mar 2018 23:52:44 +0000 (23:52 +0000)
committerManoj Gupta <manojgupta@google.com>
Fri, 2 Mar 2018 23:52:44 +0000 (23:52 +0000)
commit284236c047631c8b0eabac3ddd3d0c95253f4361
tree13c9633b1a5a9280bfa73116ed858e21c1c53a13
parentfc35d782b2edc317debfb83e6f74dc5895f15316
Do not generate calls to fentry with __attribute__((no_instrument_function))

Summary:
Currently only calls to mcount were suppressed with
no_instrument_function attribute.
Linux kernel requires that calls to fentry should also not be
generated.
This is an extended fix for PR PR33515.

Reviewers: hfinkel, rengolin, srhines, rnk, rsmith, rjmccall, hans

Reviewed By: rjmccall

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326639 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenFunction.cpp
test/CodeGen/fentry.c