This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR debug/13539 dbxout.c does not recognize protected inheritance


This fixes that -gstabs+ does records that a protected inheritance as protected but
it records it as private. This patch fixes that recording the right information.


Tested by Michael Elizabeth Chastain on the gdb testsuite where there is an KFAIL test
which passes after this patch.


Ok for the mainline?


Thanks, Andrew Pinski

ChangeLog:
* dbxout.c (dbxout_type): Protected inheritance is not private but protected.



Index: dbxout.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/dbxout.c,v retrieving revision 1.167 diff -u -p -r1.167 dbxout.c --- dbxout.c 8 Nov 2003 18:48:59 -0000 1.167 +++ dbxout.c 2 Jan 2004 14:06:42 -0000 @@ -1674,7 +1674,9 @@ dbxout_type (tree type, int full) { have_used_extensions = 1; putc (TREE_VIA_VIRTUAL (child) ? '1' : '0', asmfile); - putc (access == access_public_node ? '2' : '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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]