Re: [PATCH] Fix ICE with __RTL and -g (PR debug/82933)

2017-11-21 Thread Richard Biener
On Mon, 20 Nov 2017, Jakub Jelinek wrote: > Hi! > > The dwarf2out.c code relies on the assembly_start debug hook being > invoked before any RTL is processed from final.c (and needs it to be > done just once). Normally it is called from cgraphunit.c, but when > __RTL is seen with a starting pass,

Re: [PATCH] Fix ICE with __RTL and -g (PR debug/82933)

2017-11-20 Thread Jeff Law
On 11/20/2017 02:10 PM, Jakub Jelinek wrote: > Hi! > > The dwarf2out.c code relies on the assembly_start debug hook being > invoked before any RTL is processed from final.c (and needs it to be > done just once). Normally it is called from cgraphunit.c, but when > __RTL is seen with a starting pas

[PATCH] Fix ICE with __RTL and -g (PR debug/82933)

2017-11-20 Thread Jakub Jelinek
Hi! The dwarf2out.c code relies on the assembly_start debug hook being invoked before any RTL is processed from final.c (and needs it to be done just once). Normally it is called from cgraphunit.c, but when __RTL is seen with a starting pass, run_rtl_passes is called already from the FE. While i