re PR debug/13539 (dbxout.c does not recognize protected inheritance)
authorAndrew Pinski <pinskia@physics.uc.edu>
Mon, 12 Jan 2004 19:50:30 +0000 (19:50 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 12 Jan 2004 19:50:30 +0000 (11:50 -0800)
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

gcc/ChangeLog
gcc/dbxout.c

index 825818d401b5c0ff8ad71ab1e9c7a7e8448c84b0..d5c09c22e98da57df5ff49362c70881dc9bb7f2b 100644 (file)
@@ -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.
index dc0caf71ab879f60d77ddf017a49684ee694ee98..4971be819d1fcb243d9af33160fda2a2c3daed24 100644 (file)
@@ -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)