aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-05-05 23:07:05 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2009-05-05 23:07:05 +0200
commit6e57a01df44693719cdaa9c552bfc3d729f5c095 (patch)
tree533ece87754450454a84166bbf313727a22c4856 /gcc/dbxout.c
parent21c3348aea87865dfa7e1d3ab3a6fa32a13bf325 (diff)
downloadgcc-6e57a01df44693719cdaa9c552bfc3d729f5c095.zip
gcc-6e57a01df44693719cdaa9c552bfc3d729f5c095.tar.gz
gcc-6e57a01df44693719cdaa9c552bfc3d729f5c095.tar.bz2
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/dbxout.c')
-rw-r--r--gcc/dbxout.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 077fc1a..dd05076 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -1398,9 +1398,7 @@ dbxout_type_index (tree type)
/* Used in several places: evaluates to '0' for a private decl,
'1' for a protected decl, '2' for a public decl. */
#define DECL_ACCESSIBILITY_CHAR(DECL) \
-((TREE_CODE (DECL) != PARM_DECL && TREE_CODE (DECL) != RESULT_DECL \
- && (TREE_CODE (DECL) != VAR_DECL || TREE_STATIC (DECL)) \
- && TREE_PRIVATE (DECL)) ? '0' : TREE_PROTECTED (DECL) ? '1' : '2')
+(TREE_PRIVATE (DECL) ? '0' : TREE_PROTECTED (DECL) ? '1' : '2')
/* Subroutine of `dbxout_type'. Output the type fields of TYPE.
This must be a separate function because anonymous unions require