summaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-12 19:50:30 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-12 19:50:30 +0000
commite6653de4cb3e6658627f7994a2ff6842f8768e61 (patch)
tree59f0ee9c0e74ea62ebb49896642d59d7da0ffddd /gcc/dbxout.c
parent3b04eb2e2a2481c669d8198d045e2f46857d7b29 (diff)
downloadgcc-e6653de4cb3e6658627f7994a2ff6842f8768e61.tar.gz
2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
PR debug/13539 * dbxout.c (dbxout_type): Protected inheritance is not private but protected. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75750 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index dc0caf71ab8..4971be819d1 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -1678,8 +1678,10 @@ dbxout_type (tree type, int full)
if (use_gnu_debug_info_extensions)
{
have_used_extensions = 1;
- putc (TREE_VIA_VIRTUAL (child) ? '1' : '0', asmfile);
- putc (access == access_public_node ? '2' : '0', asmfile);
+ putc (TREE_VIA_VIRTUAL (child) ? '1' : '0', asmfile);
+ putc (access == access_public_node ? '2' :
+ (access == access_protected_node ? '1' :'0'),
+ asmfile);
CHARS (2);
if (TREE_VIA_VIRTUAL (child)
&& strcmp (lang_hooks.name, "GNU C++") == 0)