Like __cyg_profile_func_exit but with the return value instead of the call site

Laurent Burgy laurent.burgy@gmail.com
Fri Aug 21 14:11:00 GMT 2009


Hi,
I
I wanted to develop something similar to __cyg_profile_func_exit but
instead of having the call site I would like to have the actual value
returned.
With gcc-4.3.3, the expand_builtin_profile_func in builtins.c makes this call:
  emit_library_call (which, LCT_NORMAL, VOIDmode, 2, this, Pmode,
		     expand_builtin_return_addr (BUILT_IN_RETURN_ADDRESS,
						 0),
		     Pmode);

  Is there a way to replace expand_builtin_return_addr to get the
value returned ?


thanks



More information about the Gcc-help mailing list