Re: [PATCH RFA] cgraph: A COMDAT decl always has non-zero address.

2020-02-05 Thread Jan Hubicka
> We should be able to assume that a template instantiation or other COMDAT > has non-zero address even if MAKE_DECL_ONE_ONLY for the target sets > DECL_WEAK and we haven't yet decided to emit a definition in this > translation unit. > > Tested x86_64-pc-linux-gnu, OK for trunk? > > PR c++/

[PATCH RFA] cgraph: A COMDAT decl always has non-zero address.

2020-02-05 Thread Jason Merrill
We should be able to assume that a template instantiation or other COMDAT has non-zero address even if MAKE_DECL_ONE_ONLY for the target sets DECL_WEAK and we haven't yet decided to emit a definition in this translation unit. Tested x86_64-pc-linux-gnu, OK for trunk? PR c++/92003