aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/fold-const.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5a83e0e..c2e47ba 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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>
+
* tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
call langhook for unknown declaration.
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 6a1c502..455994c 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: