Re: [PATCH] RISC-V: Implment __builtin_thread_pointer

2021-03-02 Thread Kito Cheng via Gcc-patches
Hi Matthias: Sure, backported to gcc 10 branch, let's wait 10.3 :) On Mon, Mar 1, 2021 at 4:17 PM Matthias Klose wrote: > > On 7/8/20 9:59 PM, Jim Wilson wrote: > > On Tue, Jul 7, 2020 at 2:52 AM Kito Cheng wrote: > >> gcc/ChangeLog: > >> * gcc/config/riscv/riscv.md (): New. > >>

Re: [PATCH] RISC-V: Implment __builtin_thread_pointer

2021-03-01 Thread Matthias Klose
On 7/8/20 9:59 PM, Jim Wilson wrote: > On Tue, Jul 7, 2020 at 2:52 AM Kito Cheng wrote: >> gcc/ChangeLog: >> * gcc/config/riscv/riscv.md (): New. >> (TP_REGNUM): Ditto. >> * doc/extend.texi (Target Builtins): Add RISC-V built-in section. >> Document

Re: [PATCH] RISC-V: Implment __builtin_thread_pointer

2020-07-09 Thread Kito Cheng via Gcc-patches
Committed with typo fix (on the title) and ChangeLog fix. On Thu, Jul 9, 2020 at 2:48 PM Kito Cheng wrote: > > On Thu, Jul 9, 2020 at 4:03 AM Jim Wilson wrote: > > > > On Tue, Jul 7, 2020 at 2:52 AM Kito Cheng wrote: > > > gcc/ChangeLog: > > > * gcc/config/riscv/riscv.md (): New. > > >

Re: [PATCH] RISC-V: Implment __builtin_thread_pointer

2020-07-09 Thread Kito Cheng via Gcc-patches
On Thu, Jul 9, 2020 at 4:03 AM Jim Wilson wrote: > > On Tue, Jul 7, 2020 at 2:52 AM Kito Cheng wrote: > > gcc/ChangeLog: > > * gcc/config/riscv/riscv.md (): New. > > (TP_REGNUM): Ditto. > > * doc/extend.texi (Target Builtins): Add RISC-V built-in section. > >

Re: [PATCH] RISC-V: Implment __builtin_thread_pointer

2020-07-08 Thread Jim Wilson
On Tue, Jul 7, 2020 at 2:52 AM Kito Cheng wrote: > gcc/ChangeLog: > * gcc/config/riscv/riscv.md (): New. > (TP_REGNUM): Ditto. > * doc/extend.texi (Target Builtins): Add RISC-V built-in section. > Document __builtin_thread_pointer. > gcc/testsuite/ChangeLog: >

[PATCH] RISC-V: Implment __builtin_thread_pointer

2020-07-07 Thread Kito Cheng
RISC-V has a dedicate register for thread pointer which is specified in psABI doc, so we could support __builtin_thread_pointer in straightforward way. Note: clang/llvm was supported __builtin_thread_pointer for RISC-V port recently. -