diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2010-12-22 03:49:00 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2010-12-22 03:49:00 +0000 |
commit | 157e6f146e72db7fd7f39a822a1e46c62c206054 (patch) | |
tree | acd635446a64407453a2f7688ccccc3c965f09f8 /gcc/dbxout.c | |
parent | 491bbf9c5d3fcea32d941bc0b8d463ac3d16d515 (diff) |
PR debug/46724
* function.c (assign_parms_augmented_arg_list): Name and mark
DECL of result address as NAMELESS rather than IGNORED.
(assign_parms): Set DECL_VALUE_EXPR for indirect result.
* tree.h (tree_decl_common::decl_flag_2): Document RESULT_DECL.
(DECL_HAS_VALUE_EXPR_P): Accept RESULT_DECL.
* dwarf2out.c (loc_list_from_tree) <RESULT_DECL>: Use
DECL_VALUE_EXPR.
* dbxout.c (dbxout_expand_expr) <RESULT_DECL>: Likewise.
* var-tracking.c (vt_add_function_parameter): New, split out of...
(vt_add_function_parameters): ... this. Handle incoming
pointer to hold result.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168160 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 89ea0f36090..3b0cf342f5e 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -2396,12 +2396,12 @@ dbxout_expand_expr (tree expr) /* FALLTHRU */ case PARM_DECL: + case RESULT_DECL: if (DECL_HAS_VALUE_EXPR_P (expr)) return dbxout_expand_expr (DECL_VALUE_EXPR (expr)); /* FALLTHRU */ case CONST_DECL: - case RESULT_DECL: return DECL_RTL_IF_SET (expr); case INTEGER_CST: |