[LLVMdev] [PATCH 0/2 v3] add visibility hidden to tls entry points

Sedat Dilek
2015-02-17T12:55:09Z

On Tue, Feb 17, 2015 at 10:40 AM, Marc Dietrich <marvin24 at gmx.de>
wrote:
> Patch 1 adds a check for the compilers visibility macro to configure.ac.
> Patch 2 avoids redefined symbol errors in clang of the tls entry points.
> Based on a suggestion from Rafael Ávila de Espíndola <rafael.espindola
at gmail.com>
> in http://llvm.org/bugs/show_bug.cgi?id=19778.
>
> Tested with gcc 4.9 and clang 3.6(rc)
>
> Marc Dietrich (2):
>   configure: add visibility macro detection to configure
>   add visibility hidden to tls entry points
>
>  configure.ac                | 28 ++++++----------------------
>  src/mapi/Makefile.am        |  1 +
>  src/mapi/entry_x86-64_tls.h |  4 ++--
>  src/mapi/entry_x86_tls.h    |  5 +++--
>  src/mapi/entry_x86_tsd.h    |  5 +++--
>  src/util/macros.h           |  6 ++++++
>  6 files changed, 21 insertions(+), 28 deletions(-)
>

Tested-by: Sedat Dilek <sedat.dilek at gmail.com> (mesa v10.4.4 with
llvm-toolchain v3.6.0rc2)

- Sedat -

> --
> 2.2.2
>