This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gcov-profile/83355] autofdo g++.dg/bprob/g++-bprob-1.C FAILS with ICE


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  <ak@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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]