aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-01-12 19:50:30 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-01-12 11:50:30 -0800
commitc5ff912364591097c223c79d5c825ce4a4ba34a8 (patch)
tree59f0ee9c0e74ea62ebb49896642d59d7da0ffddd
parent3cd2a1838d5ed834ee2746b48d386202c5d1cfc5 (diff)
downloadgcc-c5ff912364591097c223c79d5c825ce4a4ba34a8.zip
gcc-c5ff912364591097c223c79d5c825ce4a4ba34a8.tar.gz
gcc-c5ff912364591097c223c79d5c825ce4a4ba34a8.tar.bz2
re PR debug/13539 (dbxout.c does not recognize protected inheritance)
2004-01-12 Andrew Pinski <pinskia@physics.uc.edu> PR debug/13539 * dbxout.c (dbxout_type): Protected inheritance is not private but protected. From-SVN: r75750
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dbxout.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 825818d..d5c09c2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR debug/13539
+ * dbxout.c (dbxout_type): Protected inheritance is not
+ private but protected.
+
2004-01-12 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index dc0caf7..4971be8 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)