aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-utils.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-04-14 21:21:31 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-04-14 21:21:31 +0200
commit967ca9b932e2f1b137c4e8b414146b06e1cad45c (patch)
tree689f794a5cd438e124194ffde1382c3f023c5bf2 /gcc/ipa-utils.h
parentd8747845fded660e09bab98470f77753a4216b6e (diff)
downloadgcc-967ca9b932e2f1b137c4e8b414146b06e1cad45c.zip
gcc-967ca9b932e2f1b137c4e8b414146b06e1cad45c.tar.gz
gcc-967ca9b932e2f1b137c4e8b414146b06e1cad45c.tar.bz2
re PR c++/70594 (-fcompare-debug failure)
PR c++/70594 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype. * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function. (inlined_polymorphic_ctor_dtor_block_p): Use it. * tree-ssa-live.c (remove_unused_scope_block_p): When in_ctor_dtor_block, avoid discarding not just BLOCKs with BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when block_ultimate_origin is FUNCTION_DECL. (remove_unused_locals): If current_function_decl is polymorphic_ctor_dtor_p, pass initial true to remove_unused_scope_block_p' is_ctor_dtor_block. From-SVN: r234987
Diffstat (limited to 'gcc/ipa-utils.h')
-rw-r--r--gcc/ipa-utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ipa-utils.h b/gcc/ipa-utils.h
index 839c6c5..58d2de7 100644
--- a/gcc/ipa-utils.h
+++ b/gcc/ipa-utils.h
@@ -70,6 +70,7 @@ void dump_possible_polymorphic_call_targets (FILE *, tree, HOST_WIDE_INT,
bool possible_polymorphic_call_target_p (tree, HOST_WIDE_INT,
const ipa_polymorphic_call_context &,
struct cgraph_node *);
+tree polymorphic_ctor_dtor_p (tree, bool);
tree inlined_polymorphic_ctor_dtor_block_p (tree, bool);
bool decl_maybe_in_construction_p (tree, tree, gimple *, tree);
tree vtable_pointer_value_to_binfo (const_tree);