From b0845a1e51f8c1f3e9e02049a2407321e22ad0b9 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 30 Apr 2015 02:45:54 +0000 Subject: dwarf2out.c (gen_type_die_with_usage): Call verify_type. * dwarf2out.c (gen_type_die_with_usage): Call verify_type. * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce bugus variants. * tree.c: Include print-tree.h and ipa-utils.h (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE. (free_lang_data_in_cgraph): Call verify_type. (verify_type_variant): New function. (verify_type): New function. * tree.h (verify_type): Declare. * lto.c (lto_fixup_state): Call verify_type. From-SVN: r222606 --- gcc/dwarf2out.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/dwarf2out.c') diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 8591cd7..8d5c062 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -20238,6 +20238,11 @@ gen_type_die_with_usage (tree type, dw_die_ref context_die, if (type == NULL_TREE || type == error_mark_node) return; +#ifdef ENABLE_CHECKING + if (type) + verify_type (type); +#endif + if (TYPE_NAME (type) != NULL_TREE && TREE_CODE (TYPE_NAME (type)) == TYPE_DECL && is_redundant_typedef (TYPE_NAME (type)) -- cgit v1.1