]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/6514 (3.1 irix6.5 bootstrap failure in libstdc++-v3/src/misc-inst.cc)
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>
Wed, 1 May 2002 18:03:36 +0000 (18:03 +0000)
committerFranz Sirl <sirl@gcc.gnu.org>
Wed, 1 May 2002 18:03:36 +0000 (18:03 +0000)
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: r53007

gcc/ChangeLog
gcc/varasm.c

index ca92a89f3240563d1a48ce7cb112e198acbc627a..915907711c8f023a2fec17cd52f2c9725e87aed9 100644 (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.
index 77f00d9c1c9a77868c8d113105f850b9b86c58e3..b50b99f7bbe4052407d652b58a6b92f899548922 100644 (file)
@@ -5093,12 +5093,13 @@ 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;
     }
 #endif