[PATCH] Implement __builtin_thread_pointer for x86 TLS

Hongtao Liu crazylht@gmail.com
Tue Sep 8 08:14:52 GMT 2020


Hi:
  We have "*load_tp_<mode>" in i386.md for load of thread pointer in
i386.md, so this patch merely adds the expander for
__builtin_thread_pointer.

  Bootstrap is ok, regression test is ok for i386/x86-64 backend.
  Ok for trunk?

gcc/ChangeLog:
        PR target/96955
        * config/i386/i386.md (get_thread_pointer<mode>): New
        expander.

gcc/testsuite/ChangeLog:

        * gcc.target/i386/pr96955-builtin_thread_pointer.c: New test.


-- 
BR,
Hongtao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implement-__builtin_thread_pointer-for-x86-TLS.patch
Type: text/x-patch
Size: 2165 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200908/e43c64cd/attachment.bin>


More information about the Gcc-patches mailing list