re PR bootstrap/6514 (3.1 irix6.5 bootstrap failure in libstdc++-v3/src/misc-inst.cc)

2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	PR bootstrap/6514
	* varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
	for duplicates. Always loop over whole list.

From-SVN: r53006
This commit is contained in:
Franz Sirl 2002-05-01 17:56:56 +00:00 committed by Franz Sirl
parent 8d53318f2a
commit a81eed1000
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
PR bootstrap/6514
* varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
for duplicates. Always loop over whole list.
Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* reload.c (find_reloads, case 'p'): Set BADOP to 0.

View File

@ -5094,11 +5094,12 @@ globalize_decl (decl)
/* Remove this function from the pending weak list so that
we do not emit multiple .weak directives for it. */
for (p = &weak_decls; (t = *p) ; p = &TREE_CHAIN (t))
if (TREE_VALUE (t) == decl)
for (p = &weak_decls; (t = *p) ; )
{
if (DECL_ASSEMBLER_NAME (decl) == DECL_ASSEMBLER_NAME (TREE_VALUE (t)))
*p = TREE_CHAIN (t);
break;
else
p = &TREE_CHAIN (t);
}
return;
}