re PR c++/70594 (-fcompare-debug failure)
authorJason Merrill <jason@redhat.com>
Fri, 15 Apr 2016 14:51:06 +0000 (10:51 -0400)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 15 Apr 2016 14:51:06 +0000 (16:51 +0200)
commit97f3003f6f7f1710245307d0dc989955ad59e957
tree9ed00394a2f182a244a2f209fb1698eb6cf61245
parent949505a900b4363539138c34aa8428723880a773
re PR c++/70594 (-fcompare-debug failure)

PR c++/70594
* constexpr.c (constexpr_call_table): Preserve in GC.
(struct fundef_copy, struct fundef_copies_table_t): Delete.
(fundef_copies_table): Preserve in GC. Change to pointer to
tree->tree hash.
(maybe_initialize_fundef_copies_table): Adjust.
(get_fundef_copy): Return a TREE_LIST.  Use non-inserting search.
(save_fundef_copy): Adjust for a TREE_LIST.
(cxx_eval_call_expression): Adjust for a fundef_copy TREE_LIST.
(fini_constexpr): New.
* cp-tree.h (fini_constexpr): Declare.
* decl2.c (c_parse_final_cleanups): Call fini_constexpr.

Co-Authored-By: Nathan Sidwell <nathan@acm.org>
From-SVN: r235033
gcc/ChangeLog
gcc/cp/constexpr.c
gcc/cp/cp-tree.h
gcc/cp/decl2.c