Re: [PATCH] Fix dwarf2out ICE with self-inlining (PR debug/80321)

2017-04-13 Thread Richard Biener
On Fri, Apr 7, 2017 at 11:42 PM, Jakub Jelinek wrote: > Hi! > > The following C and Ada testcases show ICE due to endless recursion in > dwarf2out.c. The problem is that when processing BLOCK_NONLOCALIZED_VARS, > we want to treat all the FUNCTION_DECLs in there as mere

[PATCH] Fix dwarf2out ICE with self-inlining (PR debug/80321)

2017-04-07 Thread Jakub Jelinek
Hi! The following C and Ada testcases show ICE due to endless recursion in dwarf2out.c. The problem is that when processing BLOCK_NONLOCALIZED_VARS, we want to treat all the FUNCTION_DECLs in there as mere declarations, but gen_subprogram_die does: int declaration = (current_function_decl !=