* dbxout.c (dbxout_type_methods): Do still group methods by name.
From-SVN: r42504
This commit is contained in:
parent
7aa9922d28
commit
b1a86a997e
2 changed files with 21 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2001-05-23 Jason Merrill <jason_merrill@redhat.com>
|
||||
|
||||
* dbxout.c (dbxout_type_methods): Do still group methods by name.
|
||||
|
||||
2001-05-23 Zack Weinberg <zackw@stanford.edu>
|
||||
|
||||
* diagnostic.c (vnotice): Kill.
|
||||
|
|
17
gcc/dbxout.c
17
gcc/dbxout.c
|
@ -771,6 +771,8 @@ dbxout_type_methods (type)
|
|||
|
||||
while (fndecl)
|
||||
{
|
||||
int need_prefix = 1;
|
||||
|
||||
/* Group together all the methods for the same operation.
|
||||
These differ in the types of the arguments. */
|
||||
for (last = NULL_TREE;
|
||||
|
@ -802,10 +804,25 @@ dbxout_type_methods (type)
|
|||
if (DECL_IGNORED_P (fndecl) || DECL_ABSTRACT (fndecl))
|
||||
continue;
|
||||
|
||||
/* Redundantly output the plain name, since that's what gdb
|
||||
expects. */
|
||||
if (need_prefix)
|
||||
{
|
||||
tree name = DECL_NAME (fndecl);
|
||||
fprintf (asmfile, "%s::", IDENTIFIER_POINTER (name));
|
||||
CHARS (IDENTIFIER_LENGTH (name) + 2);
|
||||
need_prefix = 0;
|
||||
}
|
||||
|
||||
dbxout_type (TREE_TYPE (fndecl), 0);
|
||||
|
||||
dbxout_type_method_1 (fndecl, debug_name);
|
||||
}
|
||||
if (!need_prefix)
|
||||
{
|
||||
putc (';', asmfile);
|
||||
CHARS (1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue