On Wed, Apr 15, 2015 at 9:57 PM, Anton Blanchard <an...@samba.org> wrote:
> Save an instruction with -mprofile-kernel style profiling and require
> the mcount handler to save the LR to the stack.
>
> -mprofile-kernel is an undocumented gcc option that was introduced
> specifically for the Linux kernel, so it should be safe to make this
> change. When we do add support for this option in the kernel we plan
> to support both the old and new behaviour.
>
> gcc/
> 2015-04-16  Anton Blanchard  <an...@samba.org>
>
>         * config/rs6000/rs6000.c (rs6000_output_function_prologue):
>         No need for -mprofile-kernel to save LR to stack.

The PPC kernel maintainers own the interface and ABI, so you can
ensure the caller and callee are compatible.

The patch is fine with me.

Thanks, David

Reply via email to