From fe7bf32edf45d01fee099fccdca67dd3a0f0064d Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 2 Oct 2014 05:34:21 +0000 Subject: [PATCH] ipa-prop.c (ipa_modify_formal_parameters): Do not merge type variants. * ipa-prop.c (ipa_modify_formal_parameters): Do not merge type variants. From-SVN: r215791 --- gcc/ChangeLog | 5 +++++ gcc/ipa-prop.c | 15 --------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3d654230777..354fa6aadc8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-10-01 Jan HUbicka + + * ipa-prop.c (ipa_modify_formal_parameters): Do not merge + type variants. + 2014-10-01 Jan HUbicka * ipa-polymorphic-call.c diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 34d4c0207d1..8b0f582041f 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -3960,21 +3960,6 @@ ipa_modify_formal_parameters (tree fndecl, ipa_parm_adjustment_vec adjustments) DECL_FUNCTION_CODE (fndecl) = (enum built_in_function) 0; } - /* This is a new type, not a copy of an old type. Need to reassociate - variants. We can handle everything except the main variant lazily. */ - tree t = TYPE_MAIN_VARIANT (orig_type); - if (orig_type != t) - { - TYPE_MAIN_VARIANT (new_type) = t; - TYPE_NEXT_VARIANT (new_type) = TYPE_NEXT_VARIANT (t); - TYPE_NEXT_VARIANT (t) = new_type; - } - else - { - TYPE_MAIN_VARIANT (new_type) = new_type; - TYPE_NEXT_VARIANT (new_type) = NULL; - } - TREE_TYPE (fndecl) = new_type; DECL_VIRTUAL_P (fndecl) = 0; DECL_LANG_SPECIFIC (fndecl) = NULL; -- 2.30.2