[cfe-dev] Does libc++ really need both _LIBCPP_INLINE_VISIBILITY and _LIBCPP_ALWAYS_INLINE?

Eric Fiselier via cfe-dev cfe-dev at lists.llvm.org
Thu Dec 10 11:54:31 PST 2015


> In any case it looks strange. And does libc++ even have Windows support?

No, but various attempts have been made to add support, including trying to
support Windows dllimport/export semantics.

> Sorry, no idea what hidden will expand to on COFF.

Thanks. I was already pretty sure that the visibility attribute was an
oversight. Not an intended difference.

On Thu, Dec 10, 2015 at 12:28 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> >> #define _LIBCPP_INLINE_VISIBILITY __attribute__((__always_inline__))
> >> #define _LIBCPP_ALWAYS_INLINE  __attribute__((__visibility__("hidden"),
> >> __always_inline__))
> >>
> >> I'm almost certain this difference is unintentional. However before I
> remove
> >> one in favor of the other I would like to be sure this is the correct
> thing
> >> to do.
> >>
> >> I would like to find out if:
> >>
> >> 1.Do visibility attributes have any effect on windows? If not the two
> >> definitions are already functionally identical.
> >
> > Maybe it could affect linkage? Rafael or Reid would probably know.
> >
> > In any case it looks strange. And does libc++ even have Windows support?
>
>
> Sorry, no idea what hidden will expand to on COFF.
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151210/9462a2f8/attachment.html>


More information about the cfe-dev mailing list