On May 7, 2014 5:30:53 PM CEST, Martin Jambor <mjam...@suse.cz> wrote: >Hi, > >I nearly forgot about this patch to fix PR 60897 where we get a >mangled name in a warning for IPA-SRA functions because IPA-SRA >currently does not clear DECL_LANG_SPECIFIC when it messes with formal >parameters and the front-end then does not look at abstract origin >when it is not NULL. > >Bootstrapped and tested on x86_64-linux. OK for trunk? Also, >although I have not tested it there yet, I suppose this should also be >committed to the 4.9 branch.
OK for both. Thanks, Richard. >Thanks, > >Martin > > >2014-04-22 Martin Jambor <mjam...@suse.cz> > > PR ipa/60897 > * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC. > >diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c >index 9f144fa..0bc44d3 100644 >--- a/gcc/ipa-prop.c >+++ b/gcc/ipa-prop.c >@@ -3650,6 +3650,7 @@ ipa_modify_formal_parameters (tree fndecl, >ipa_parm_adjustment_vec adjustments) > > TREE_TYPE (fndecl) = new_type; > DECL_VIRTUAL_P (fndecl) = 0; >+ DECL_LANG_SPECIFIC (fndecl) = NULL; > otypes.release (); > oparms.release (); > }