-
- Downloads
cp-tree.h (struct lang_type_class): add field for key method
* cp-tree.h (struct lang_type_class): add field for key method (cp_global_trees): rename dynamic_classes to keyed_classes (key_method): add definition * class.c (finish_struct_1): compute class's key method, and add the class to keyed_classes list if there is no key method. * decl.c (finish_function): add class to keyed_classes list if we see a definition of the class's key method. * pt.c (instantiate_class_template): add template specialization of a dynamic class to keyed_classes list. * decl2.c (key_method): remove (finish_file): iterate only through keyed_classes list when deciding whether to emit vtables, remove class from its list after we do the emission. From-SVN: r60850
Showing
- gcc/cp/ChangeLog 16 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/class.c 35 additions, 3 deletionsgcc/cp/class.c
- gcc/cp/cp-tree.h 10 additions, 3 deletionsgcc/cp/cp-tree.h
- gcc/cp/decl.c 9 additions, 0 deletionsgcc/cp/decl.c
- gcc/cp/decl2.c 33 additions, 32 deletionsgcc/cp/decl2.c
- gcc/cp/pt.c 3 additions, 0 deletionsgcc/cp/pt.c
Loading
Please register or sign in to comment