[compiler-rt] r246454 - builtins: implement __emutls_get_address

H.J. Lu via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 4 10:35:56 PDT 2015


On Fri, Sep 4, 2015 at 10:32 AM, Chih-hung Hsieh <chh at google.com> wrote:
> I am not sure which one is correct yet,
> but gcc -mx32 and clang -mx32 are not compatible.
>
>        sizeof(gcc_word) (size_t)
>  clang -m64   8          8
>  gcc   -m64   8          8
>  clang -m32   4          4
>  gcc   -m32   4          4
>  clang -mx32  4          4
>  gcc   -mx32  8          4
>
> So, for -mx32 targets, even the original emutls.c will have difference
> layout for gcc_word from gcc and clang. Would it be right to use only gcc or
> only clang for gcc -mx32? Then, this compiler-rt's emutls.c should be
> excluded when gcc -mx32 is used.

See:

https://llvm.org/bugs/show_bug.cgi?id=24706

-- 
H.J.


More information about the llvm-commits mailing list