On Wed, Jun 30, 2021 at 10:23 AM Erick Ochoa via Gcc <gcc@gcc.gnu.org> wrote: > > Hello, > > I am wondering if there's a way to get the global namespace at LTO > during LGEN in each of the partitions being processed. I believe that > during parse time for c/c++ there is a global_namespace macro or > variable that can be used, but I don't think that it is possible to > use at link time.
There can be many - walking DECL_CONTEXT will eventually lead to a TRANSLATION_UNIT_DECL (but there can be some with NULL, I don't remember if we force-associate ones not associated with a TU by the frontends) Richard. > Thanks!