From a9548ddfe584e4253d3afcf07b5a2cbb5b68a896 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sun, 26 Apr 2009 20:44:59 +0200 Subject: tree.h (DECL_BY_REFERENCE): Note that it is also valid for !TREE_STATIC VAR_DECLs. * tree.h (DECL_BY_REFERENCE): Note that it is also valid for !TREE_STATIC VAR_DECLs. * dwarf2out.c (loc_by_reference, gen_decl_die): Handle DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs. (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if DECL_BY_REFERENCE is valid. * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs. * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl): Copy DECL_BY_REFERENCE. (struct nesting_copy_body_data): New type. (nesting_copy_decl): New function. (finalize_nesting_tree_1): Remap types of debug_var_chain variables, if they have variable length. From-SVN: r146808 --- gcc/tree.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/tree.h') diff --git a/gcc/tree.h b/gcc/tree.h index 4cd9b7d..d6550b5 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -476,7 +476,7 @@ struct GTY(()) tree_common { CALL_EXPR DECL_BY_REFERENCE in - PARM_DECL, RESULT_DECL + PARM_DECL, RESULT_DECL, VAR_DECL (only !TREE_STATIC) OMP_SECTION_LAST in OMP_SECTION @@ -1294,8 +1294,9 @@ extern void omp_clause_range_check_failed (const_tree, const char *, int, #define CALL_EXPR_RETURN_SLOT_OPT(NODE) \ (CALL_EXPR_CHECK (NODE)->base.private_flag) -/* In a RESULT_DECL or PARM_DECL, means that it is passed by invisible - reference (and the TREE_TYPE is a pointer to the true type). */ +/* In a RESULT_DECL, PARM_DECL or VAR_DECL without TREE_STATIC, means that it is + passed by invisible reference (and the TREE_TYPE is a pointer to the true + type). */ #define DECL_BY_REFERENCE(NODE) (DECL_COMMON_CHECK (NODE)->base.private_flag) /* In a CALL_EXPR, means that the call is the jump from a thunk to the -- cgit v1.1