re PR ipa/61144 (Invalid optimizations for extern vars with local weak definitions)