https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83355
--- Comment #2 from ak at gcc dot gnu.org --- Author: ak Date: Mon Dec 11 16:13:53 2017 New Revision: 255540 URL: https://gcc.gnu.org/viewcvs?rev=255540&root=gcc&view=rev Log: Fix stack overflow with autofdo (PR83355) 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. gcc/: 2017-12-11 Andi Kleen <a...@linux.intel.com> PR gcov-profile/83355 * auto-profile.c (string_table::get_index_by_decl): Don't recurse when abstract origin points to itself. Modified: trunk/gcc/ChangeLog trunk/gcc/auto-profile.c trunk/gcc/lto-streamer-in.c