diff options
author | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-04-30 02:45:54 +0000 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-04-30 02:45:54 +0000 |
commit | b0845a1e51f8c1f3e9e02049a2407321e22ad0b9 (patch) | |
tree | c055c1c170c01ef4e61d0784cef0bc2b574383cf /gcc/dwarf2out.c | |
parent | e022edafa0e797ed9c15663e083bbaa3f4b8dff7 (diff) | |
download | gcc-b0845a1e51f8c1f3e9e02049a2407321e22ad0b9.zip gcc-b0845a1e51f8c1f3e9e02049a2407321e22ad0b9.tar.gz gcc-b0845a1e51f8c1f3e9e02049a2407321e22ad0b9.tar.bz2 |
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
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 5 |
1 files changed, 5 insertions, 0 deletions
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)) |