[patch] improve entry/exit instrumentation wrt trampolines

Jeff Law law@redhat.com
Fri Jun 22 16:13:00 GMT 2018


On 06/22/2018 09:47 AM, Olivier Hainque wrote:
> 
> 
>> On 22 Jun 2018, at 17:44, Olivier Hainque <hainque@adacore.com> wrote:
> 
>> Receiving the actual function address would seem more
>> useful for function-instrumentation purposes, and this
>> patch adjusts the compiler to do that instead.
>>
>> 2018-06-22  Olivier Hainque  <hainque@adacore.com>
>>
>> 	* gimplify.c (gimplify_function_tree): Prevent creation
>> 	of a trampoline for the address of the current function
>> 	passed to entry/exit instrumentation hooks.
I was a little concerned about the TREE_NO_TRAMPOLINE bit, but that's
only applied to the result of the build_fold_addr_expr, not to the
actual decl itself AFAICT.

So, OK.

Thanks,
jeff



More information about the Gcc-patches mailing list