Re: [PATCH] Save an instruction with -mprofile-kernel style profiling

2015-04-16 Thread David Edelsohn
On Wed, Apr 15, 2015 at 9:57 PM, Anton Blanchard 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

[PATCH] Save an instruction with -mprofile-kernel style profiling

2015-04-15 Thread Anton Blanchard
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 opti