Re: [PATCH] Fix stack overflow with autofdo (PR83355)

2017-12-11 Thread Richard Biener
On Mon, Dec 11, 2017 at 8:01 AM, Andi Kleen wrote: > From: Andi Kleen > > g++.dg/bprob* is failing currently with autofdo. > > Running in gdb shows that there is a very deep recursion in get_index_by_decl > until it > overflows the stack. > > This patch seems to fix it (but not sure why the abst

[PATCH] Fix stack overflow with autofdo (PR83355)

2017-12-10 Thread Andi Kleen
From: Andi Kleen g++.dg/bprob* is failing currently with autofdo. Running in gdb shows that there is a very deep recursion in get_index_by_decl until it overflows the stack. This patch seems to fix it (but not sure why the abstract origin would point to itself) Passes bootstrap and testing on