https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95565
Bug ID: 95565 Summary: [Feature request] add a flag to only instrument function entry. Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: hiraditya at msn dot com Target Milestone: --- The flag -finstrument-functions instruments both entry and the exit of function. There are many scenarios (like cheap profiling) only instrumenting the function entry is sufficient. But gcc instruments exit as well contributing to unwanted code size increase.