From 833b3afe497cd2430838ddd8a9b1ab9c9b0ba4f2 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Sat, 4 Jun 2005 17:22:21 +0000 Subject: cfgexpand.c (expand_one_var): Use DECL_HAS_VALUE_EXPR_P. 2005-06-01 Daniel Berlin * 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 --- gcc/dwarf2out.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/dwarf2out.c') diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 1afe52e..af62a77 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -8972,8 +8972,9 @@ loc_descriptor_from_tree_1 (tree loc, int want_address) /* FALLTHRU */ case PARM_DECL: - if (DECL_VALUE_EXPR (loc)) - return loc_descriptor_from_tree_1 (DECL_VALUE_EXPR (loc), want_address); + if (DECL_HAS_VALUE_EXPR_P (loc)) + return loc_descriptor_from_tree_1 (DECL_VALUE_EXPR (loc), + want_address); /* FALLTHRU */ case RESULT_DECL: -- cgit v1.1