From: Jan Hubicka Date: Tue, 15 Jul 2014 10:51:45 +0000 (+0200) Subject: fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ae506425148269dfdd5b2001804bdb461ec5706;p=gcc.git fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT. * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT. From-SVN: r212550 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5a83e0e35b3..c2e47ba7202 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-07-14 Jan Hubicka + + * fold-const.c (fold_checksum_tree): Move checking of + DECL_RESULT. + 2014-07-14 Jan Hubicka * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL, diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 6a1c50204bb..455994cd3fc 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -14860,9 +14860,11 @@ fold_checksum_tree (const_tree expr, struct md5_ctx *ctx, if (CODE_CONTAINS_STRUCT (TREE_CODE (expr), TS_DECL_NON_COMMON)) { if (TREE_CODE (expr) == FUNCTION_DECL) - fold_checksum_tree (DECL_VINDEX (expr), ctx, ht); + { + fold_checksum_tree (DECL_VINDEX (expr), ctx, ht); + fold_checksum_tree (DECL_ARGUMENT (expr), ctx, ht); + } fold_checksum_tree (DECL_RESULT_FLD (expr), ctx, ht); - fold_checksum_tree (DECL_ARGUMENT_FLD (expr), ctx, ht); } break; case tcc_type: