On Sat, 14 Oct 2023, Martin Uecker wrote: > + if (!initialized > + && storage_class != csc_static > + && storage_class != csc_auto > + && current_scope != file_scope)
I think it would be better to use TREE_PUBLIC (decl) in place of storage_class != csc_static && storage_class != csc_auto. OK with that change. -- Joseph S. Myers jos...@codesourcery.com