From c5ff912364591097c223c79d5c825ce4a4ba34a8 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Mon, 12 Jan 2004 19:50:30 +0000 Subject: [PATCH] re PR debug/13539 (dbxout.c does not recognize protected inheritance) 2004-01-12 Andrew Pinski PR debug/13539 * dbxout.c (dbxout_type): Protected inheritance is not private but protected. From-SVN: r75750 --- gcc/ChangeLog | 6 ++++++ gcc/dbxout.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 825818d401b5..d5c09c22e98d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-01-12 Andrew Pinski + + PR debug/13539 + * dbxout.c (dbxout_type): Protected inheritance is not + private but protected. + 2004-01-12 Richard Sandiford * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch. diff --git a/gcc/dbxout.c b/gcc/dbxout.c index dc0caf71ab87..4971be819d1f 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) -- 2.47.3