Make keyed_classes a vector.
authorNathan Sidwell <nathan@gcc.gnu.org>
Fri, 16 Jun 2017 14:33:45 +0000 (14:33 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 16 Jun 2017 14:33:45 +0000 (14:33 +0000)
commit6a2dfd9a66a678b26c762d0fc614fea267ea706b
tree71512245eb8338397e64115e91116c5af543c327
parent8c1ca7ee3a35bf00201c6a82ccd5b663575328a7
Make keyed_classes a vector.

* cp-tree.h (CPTI_KEYED_CLASSES, keyed_classes): Delete.
(keyed_classes): Declare as vector.
* decl.c (keyed_classes): Define.
(cxx_init_decl_processing): Allocate it.
(record_key_method_defined): Use vec_safe_push.
* class.c (finish_struct_1): Likewise.
* pt.c (instantiate_class_template_1): Likewise.
* decl2.c (c_parse_final_cleanups): Reverse iterate keyed_classes.

From-SVN: r249263
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/pt.c