This is an archive of the discontinued LLVM Phabricator instance.

[Clang] Handle interaction of -pg and no_instrument_function attribute.
ClosedPublic

Authored by manojgupta on Jun 19 2017, 11:35 AM.

Details

Summary

Disable generation of counting-function attribute if no_instrument_function
attribute is present in function.
Interaction between -pg and no_instrument_function is the desired behavior
and matches gcc as well.
This is required for fixing a crash in Linux kernel when function tracing
is enabled.

Fixes PR33515.

Event Timeline

manojgupta created this revision.Jun 19 2017, 11:35 AM
This revision is now accepted and ready to land.Jun 19 2017, 11:40 AM
manojgupta closed this revision.Jun 19 2017, 11:45 AM

Thanks for the quick review.