[compiler-rt] r246454 - builtins: implement __emutls_get_address
Chih-hung Hsieh via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 4 10:47:10 PDT 2015
I see. If clang will handle gcc_word same as gcc in all modes, then we
could replace size_t with gcc_word in this emutls.c module.
On Fri, Sep 4, 2015 at 10:35 AM, H.J. Lu <hjl.tools at gmail.com> wrote:
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150904/b8dbb93a/attachment.html>
More information about the llvm-commits
mailing list