> Then why not just make the LTO front-end follow the existing semantics of > TREE_ADDRESSABLE and clear it when it figures out that the address is not > taken? That would seem the natural thing to do here.
I meant "clear the TREE_PUBLIC/DECL_EXTERNAL flags" of course... -- Eric Botcazou