From: Jan Hubicka Date: Fri, 22 Jun 2018 09:45:54 +0000 (+0200) Subject: * tree.c (free_lang_data_in_type): Free all TYPE_VFIELDs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ebbb116851bd0b43e6c86cd719b7a70684991d66;p=gcc.git * tree.c (free_lang_data_in_type): Free all TYPE_VFIELDs. From-SVN: r261883 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 242c27d892b..89b8f92dbaa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-06-22 Jan Hubicka + + * tree.c (free_lang_data_in_type): Free all TYPE_VFIELDs. + 2018-06-22 Martin Liska * symbol-summary.h (get): Make it pure and inline move diff --git a/gcc/tree.c b/gcc/tree.c index 608ca7e5abd..1cb51766aa8 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -5134,10 +5134,7 @@ free_lang_data_in_type (tree type) else *prev = DECL_CHAIN (member); - /* FIXME: C FE uses TYPE_VFIELD to record C_TYPE_INCOMPLETE_VARS - and danagle the pointer from time to time. */ - if (TYPE_VFIELD (type) && TREE_CODE (TYPE_VFIELD (type)) != FIELD_DECL) - TYPE_VFIELD (type) = NULL_TREE; + TYPE_VFIELD (type) = NULL_TREE; if (TYPE_BINFO (type)) {