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
This commit is contained in:
Jan Hubicka 2014-07-15 12:51:45 +02:00 committed by Jan Hubicka
parent ad115a3c32
commit 6ae5064251
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-07-14 Jan Hubicka <hubicka@ucw.cz>
* fold-const.c (fold_checksum_tree): Move checking of
DECL_RESULT.
2014-07-14 Jan Hubicka <hubicka@ucw.cz> 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
* tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL, * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,

View File

@ -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 (CODE_CONTAINS_STRUCT (TREE_CODE (expr), TS_DECL_NON_COMMON))
{ {
if (TREE_CODE (expr) == FUNCTION_DECL) 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_RESULT_FLD (expr), ctx, ht);
fold_checksum_tree (DECL_ARGUMENT_FLD (expr), ctx, ht);
} }
break; break;
case tcc_type: case tcc_type: