From: Andrew Pinski Date: Mon, 12 Jan 2004 19:50:30 +0000 (+0000) Subject: re PR debug/13539 (dbxout.c does not recognize protected inheritance) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;ds=sidebyside;h=c5ff912364591097c223c79d5c825ce4a4ba34a8;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 825818d401b..d5c09c22e98 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 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)