aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-04-24 22:06:37 +0000
committerJakub Jelinek <jakub@redhat.com>2005-04-24 22:06:37 +0000
commitf155232220ba4b207a30951d0523edf579ca0ecb (patch)
treeceb41f874d3b1e3d612a3d2785020f503973c21a /gcc/cgraph.h
parent24fb0d3ef7d8f72d49f5865822c22a2604dff08b (diff)
PR middle-end/20991
* cgraph.h (cgraph_local_info): Add vtable_method field. * varasm.c (mark_decl_referenced): If cgraph_global_info_ready and node is vtable_method, finalized and not reachable, don't do anything. * class.c: Include cgraph.h. (cp_fold_obj_type_ref): Set node->local.vtable_method. * Make-lang.in (cgraph.o): Depend on $(CGRAPH_H). * g++.dg/opt/pr20991.C: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@98674 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 02fa662061f..fc0fa7858e5 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -51,6 +51,10 @@ struct cgraph_local_info GTY(())
/* True if statics_read_for_function and
statics_written_for_function contain valid data. */
bool for_functions_valid;
+
+ /* True if the function is going to be emitted in some other translation
+ unit, referenced from vtable. */
+ bool vtable_method;
};
/* Information about the function that needs to be computed globally