aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vrp.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2018-11-29 23:11:53 +0000
committerAndi Kleen <ak@gcc.gnu.org>2018-11-29 23:11:53 +0000
commitd7bf0bd696eaa7611ca97285347f8e3e604feefd (patch)
tree27bcf2cfea64f7e88559ae5c0d5f6748a793857e /gcc/tree-vrp.c
parent3b31afe1a56cfb7b92f563b53686b378bdbead54 (diff)
downloadgcc-d7bf0bd696eaa7611ca97285347f8e3e604feefd.zip
gcc-d7bf0bd696eaa7611ca97285347f8e3e604feefd.tar.gz
gcc-d7bf0bd696eaa7611ca97285347f8e3e604feefd.tar.bz2
Support changing fentry name per function
It can be useful to have some classes of functions that use a different __fentry__ instrumentation than others. Currently it is only possible to disable instrumentation on the command line or with no_instrument_function, but not to change the instrumentation function on a case by case base. Add some flexibility to allow to change the instrumentation function name per file with an option or per function with a new attribute. This also allows switching to nops for individual functions. gcc/: 2018-11-29 Andi Kleen <ak@linux.intel.com> * config/i386/i386.c (x86_print_call_or_nop): Handle nop name. (current_fentry_name): Add. (x86_function_profiler): Handle fentry_name attribute. (ix86_handle_fentry_name): Add. (ix86_attribute_table): Add fentry_name. * config/i386/i386.opt: Add -mfentry-name * doc/extend.texi: Document fentry_name. * doc/invoke.texi: Document minstrument-return. gcc/testsuite/: 2018-11-29 Andi Kleen <ak@linux.intel.com> * gcc.target/i386/fentryname1.c: New test. From-SVN: r266653
Diffstat (limited to 'gcc/tree-vrp.c')
0 files changed, 0 insertions, 0 deletions