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/ipa-chkp.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/ipa-chkp.c')
-rw-r--r-- | gcc/ipa-chkp.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/gcc/ipa-chkp.c b/gcc/ipa-chkp.c index 03abab5..23e08cb 100644 --- a/gcc/ipa-chkp.c +++ b/gcc/ipa-chkp.c @@ -244,7 +244,7 @@ tree chkp_copy_function_type_adding_bounds (tree orig_type) { tree type; - tree arg_type, attrs, t; + tree arg_type, attrs; unsigned len = list_length (TYPE_ARG_TYPES (orig_type)); unsigned *indexes = XALLOCAVEC (unsigned, len); unsigned idx = 0, new_idx = 0; @@ -327,20 +327,6 @@ chkp_copy_function_type_adding_bounds (tree orig_type) TYPE_ATTRIBUTES (type) = attrs; } - t = TYPE_MAIN_VARIANT (orig_type); - if (orig_type != t) - { - TYPE_MAIN_VARIANT (type) = t; - TYPE_NEXT_VARIANT (type) = TYPE_NEXT_VARIANT (t); - TYPE_NEXT_VARIANT (t) = type; - } - else - { - TYPE_MAIN_VARIANT (type) = type; - TYPE_NEXT_VARIANT (type) = NULL; - } - - return type; } |