aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-07-15 12:51:45 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2014-07-15 10:51:45 +0000
commit6ae506425148269dfdd5b2001804bdb461ec5706 (patch)
treeea6b0d4f503d040f083caf16b410884e9f179bcc /gcc/fold-const.c
parentad115a3c32ab0af89b575221f3a8212652a7f948 (diff)
downloadgcc-6ae506425148269dfdd5b2001804bdb461ec5706.zip
gcc-6ae506425148269dfdd5b2001804bdb461ec5706.tar.gz
gcc-6ae506425148269dfdd5b2001804bdb461ec5706.tar.bz2
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
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c6
1 files changed, 4 insertions, 2 deletions
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: