From: Richard Guenther Date: Fri, 30 Jul 2010 09:36:18 +0000 (+0000) Subject: ipa-prop.c (ipa_modify_formal_parameters): Use build_distinct_type_copy. X-Git-Tag: releases/gcc-4.6.0~5322 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4eb3f32c268f5b3f769d8b17eae32e88b9934e35;p=thirdparty%2Fgcc.git ipa-prop.c (ipa_modify_formal_parameters): Use build_distinct_type_copy. 2010-07-30 Richard Guenther * ipa-prop.c (ipa_modify_formal_parameters): Use build_distinct_type_copy. From-SVN: r162707 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f4365a3f56d6..07da5fda978a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-07-30 Richard Guenther + + * ipa-prop.c (ipa_modify_formal_parameters): Use + build_distinct_type_copy. + 2010-07-30 Anthony Green * config/moxie/rtems.h: New file. diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 77e84c11f7a1..c5da8f84fdbb 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -2077,7 +2077,7 @@ ipa_modify_formal_parameters (tree fndecl, ipa_parm_adjustment_vec adjustments, || (VEC_index (ipa_parm_adjustment_t, adjustments, 0)->copy_param && VEC_index (ipa_parm_adjustment_t, adjustments, 0)->base_index == 0)) { - new_type = copy_node (orig_type); + new_type = build_distinct_type_copy (orig_type); TYPE_ARG_TYPES (new_type) = new_reversed; } else