Re: [PATCH] Fix subreg in debug_insn handling issue exposed on mn103

2017-04-13 Thread Jeff Law
On 04/13/2017 08:06 AM, Jakub Jelinek wrote: On Thu, Apr 13, 2017 at 08:03:48AM -0600, Jeff Law wrote: The mn103 port fails to build newlib/libgcc because it's got a non-simplifyable (subreg (mem)) in a debug insn. reload will call eliminate_regs_1 on the debug insn. It'll see the subreg and

Re: [PATCH] Fix subreg in debug_insn handling issue exposed on mn103

2017-04-13 Thread Jakub Jelinek
On Thu, Apr 13, 2017 at 08:03:48AM -0600, Jeff Law wrote: > > The mn103 port fails to build newlib/libgcc because it's got a > non-simplifyable (subreg (mem)) in a debug insn. > > reload will call eliminate_regs_1 on the debug insn. It'll see the subreg > and call gen_rtx_SUBREG. That asserts t

[PATCH] Fix subreg in debug_insn handling issue exposed on mn103

2017-04-13 Thread Jeff Law
The mn103 port fails to build newlib/libgcc because it's got a non-simplifyable (subreg (mem)) in a debug insn. reload will call eliminate_regs_1 on the debug insn. It'll see the subreg and call gen_rtx_SUBREG. That asserts that the subreg is valid. Which (of course) fails. The key here