aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-mudflap.c
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2005-06-04 17:22:21 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2005-06-04 17:22:21 +0000
commit833b3afe497cd2430838ddd8a9b1ab9c9b0ba4f2 (patch)
tree7157b77ca7d19813485d549c8f67ec67a23aee72 /gcc/tree-mudflap.c
parent610d24786dd3e1f9d828b94def29961e7da987cc (diff)
downloadgcc-833b3afe497cd2430838ddd8a9b1ab9c9b0ba4f2.zip
gcc-833b3afe497cd2430838ddd8a9b1ab9c9b0ba4f2.tar.gz
gcc-833b3afe497cd2430838ddd8a9b1ab9c9b0ba4f2.tar.bz2
cfgexpand.c (expand_one_var): Use DECL_HAS_VALUE_EXPR_P.
2005-06-01 Daniel Berlin <dberlin@dberlin.org> * cfgexpand.c (expand_one_var): Use DECL_HAS_VALUE_EXPR_P. * dwarf2out.c (loc_descriptor_from_tree_1): Ditto. * expr.c (expand_var): Ditto. * function.c (gimplify_parameters): Use SET_DECL_VALUE_EXPR too. * gimplify.c (gimplify_decl_expr): Ditto. (gimplify_expr): Ditto. * tree-mudflap.c (mf_decl_eligible_p): Use DECL_HAS_VALUE_EXPR_P. * tree.c (value_expr_for_decl): New. (print_value_expr_statistics): New. (init_ttree): Init value_expr_for_decl. (decl_value_expr_lookup): New. (decl_value_expr_insert): Ditto. (copy_node_stat): Copy DECL_VALUE_EXPR status. * tree.h (DECL_VALUE_EXPR): Use hashtable. (SET_DECL_VALUE_EXPR): New. (DECL_HAS_VALUE_EXPR_P): New. From-SVN: r100592
Diffstat (limited to 'gcc/tree-mudflap.c')
-rw-r--r--gcc/tree-mudflap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c
index 0234c59..f7ab16e 100644
--- a/gcc/tree-mudflap.c
+++ b/gcc/tree-mudflap.c
@@ -710,7 +710,7 @@ mf_decl_eligible_p (tree decl)
/* The type of the variable must be complete. */
&& COMPLETE_OR_VOID_TYPE_P (TREE_TYPE (decl))
/* The decl hasn't been decomposed somehow. */
- && DECL_VALUE_EXPR (decl) == NULL);
+ && !DECL_HAS_VALUE_EXPR_P (decl));
}