diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-05-05 23:07:05 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-05-05 23:07:05 +0200 |
commit | 6e57a01df44693719cdaa9c552bfc3d729f5c095 (patch) | |
tree | 533ece87754450454a84166bbf313727a22c4856 /gcc/print-tree.c | |
parent | 21c3348aea87865dfa7e1d3ab3a6fa32a13bf325 (diff) | |
download | gcc-6e57a01df44693719cdaa9c552bfc3d729f5c095.tar.gz |
tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
* tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
(struct tree_base): Adjust spacing for 8 bit boundaries.
(struct tree_decl_common): Add decl_by_reference_flag bit.
(DECL_BY_REFERENCE): Adjust.
* print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
print DECL_BY_REFERENCE bit.
* dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
* dwarf2out.c (loc_by_reference, gen_decl_die): Check
DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
(gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
unconditionally.
From-SVN: r147135
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r-- | gcc/print-tree.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c index 2e514436394..0d352642157 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -448,6 +448,10 @@ print_node (FILE *file, const char *prefix, tree node, int indent) fprintf (file, " %s", GET_MODE_NAME (mode)); } + if ((code == VAR_DECL || code == PARM_DECL || code == RESULT_DECL) + && DECL_BY_REFERENCE (node)) + fputs (" passed-by-reference", file); + if (CODE_CONTAINS_STRUCT (code, TS_DECL_WITH_VIS) && DECL_DEFER_OUTPUT (node)) fputs (" defer-output", file); |