Re: [PATCH] Fix patchable-function-entry on arc

2020-01-23 Thread Jeff Law
On Wed, 2020-01-22 at 17:25 -0800, apin...@marvell.com wrote: > From: Andrew Pinski > > The problem here is arc looks at current_output_insn unconditional > but sometimes current_output_insn is NULL. With patchable-function-entry, > it will be. This is similar to how the nios2, handles "%.". >

[PATCH] Fix patchable-function-entry on arc

2020-01-22 Thread apinski
From: Andrew Pinski The problem here is arc looks at current_output_insn unconditional but sometimes current_output_insn is NULL. With patchable-function-entry, it will be. This is similar to how the nios2, handles "%.". Committed as obvious after a simple test with -fpatchable-function-entry=1