This is the mail archive of the
mailing list for the GCC project.
Re: Bootstrap error with gcc-20020429 snapshot on mips-sgi-irix6.5
--On Wednesday, May 01, 2002 10:08:04 AM -0700 Richard Henderson
> On Wed, May 01, 2002 at 07:05:26PM +0200, Franz Sirl wrote:
>> for (p = &weak_decls; (t = *p) ; p = &TREE_CHAIN (t))
>> + if (DECL_ASSEMBLER_NAME (decl) == DECL_ASSEMBLER_NAME (TREE_VALUE (t)))
>> + *p = TREE_CHAIN (t);
> This is wrong for iterating over the whole list. You want
> for (p = &weak_decls; (t = *p) ;)
> if (...)
> *p = TREE_CHAIN (t);
> p = &TREE_CHAIN (t);
Yup. This version is OK, for branch and mainline.
Mark Mitchell email@example.com
CodeSourcery, LLC http://www.codesourcery.com