r328040 - Set dso_local on string literals.

Joerg Sonnenberger via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 22 12:27:07 PDT 2018


On Tue, Mar 20, 2018 at 05:01:24PM -0700, Rafael Avila de Espindola wrote:
> Joerg Sonnenberger via cfe-commits <cfe-commits at lists.llvm.org> writes:
> 
> > On Tue, Mar 20, 2018 at 08:42:55PM -0000, Rafael Espindola via cfe-commits wrote:
> >> Author: rafael
> >> Date: Tue Mar 20 13:42:55 2018
> >> New Revision: 328040
> >> 
> >> URL: http://llvm.org/viewvc/llvm-project?rev=328040&view=rev
> >> Log:
> >> Set dso_local on string literals.
> >
> > I wonder if unnamed_addr shouldn't imply that in general?
> 
> I don't think so. For example, a language where functions cannot be
> compared for equality could mark all functions unnamed_addr. It could
> still support interposition, which requires that they are not dso_local.

I don't think that argument makes sense. The address is not named, that
strongly implies that can't be interpositioned either.

Joerg


More information about the cfe-commits mailing list