This is the mail archive of the
mailing list for the GCC project.
Re: New varpool walking API
> Just a couple of comments
> Any reason not to use the FOR_EACH_STATIC_VARIABLE macro here?
> Likewise here?
The first loop walks just till first static variable with initializer,
it can be writed with FOR_EACH, but it is not really for each so it
seemed confusing. The second loop starts in the middle of chain so it
can't be written.
> > ! FOR_EACH_STATIC_INITIALIZER (vnode)
> Uhm this looks wrong, shouldn't this for FOR_EACH_STATIC_VARIABLE?
No, see the analyze_variable_change.
Thanks for looking into the patch,