Weak functions on powerpc64-linux
Richard Henderson
rth@redhat.com
Wed Feb 27 12:00:00 GMT 2002
On Thu, Feb 28, 2002 at 01:47:30AM +1030, Alan Modra wrote:
> + for (t = *(struct weak_syms **) arg; t != NULL; t = t->next)
> + {
> + tree decl = t->decl;
> + if (decl == NULL_TREE)
> + {
> + tree name = get_identifier (t->name);
> + if (name)
> + decl = lookup_name (name);
> + t->decl = decl;
> + }
> + ggc_mark_tree (decl);
No, this need be no more complicated than
for (...)
ggc_mark_tree (t->decl);
I.e. mark exactly what's in your data structure.
Everything else looks fine.
r~
More information about the Gcc-patches
mailing list