[PATCH] Implement __declspec(selectany) under -fms-extensions

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri May 17 11:38:23 PDT 2013


On 17 May 2013 14:11, Erik Schwiebert <eriksc at microsoft.com> wrote:
> My understanding of declspec(selectany) is that only one item needs to be kept in the final linked object; all others may be discarded.  The behavior is DEFINITLY different from "weak" linkage where all are kept and the loader is responsible for selecting the one that wins.
>
> MacBU is very happy to see selectany support being added!

Note that we are talking about llvm level linkage types. The semantics
are defined in

http://llvm.org/docs/LangRef.html#linkage-types

> Schwieb
>

Cheers,
Rafael




More information about the cfe-commits mailing list