[PATCH] RISC-V: Implement __clear_cache via __builtin__clear_cache

2021-04-29 Thread Palmer Dabbelt via Gcc-patches
We have had an implementation of __builtin__clear_cache since the beginning, but didn't have the cooresponding __clear_cache library routine implemented. This directly conflicts the GCC manual in a handful of places, which indicates that __clear_cache should work and that __builtin_clear_cache sho

Re: [PATCH] RISC-V: Disable use of TLS copy relocs.

2020-01-08 Thread Palmer Dabbelt via gcc-patches
On Wed, 08 Jan 2020 17:05:21 PST (-0800), Jim Wilson wrote: Musl and lld don't support TLS copy relocs, and don't want to add support for this feature which is unique to RISC-V. Only GNU ld and glibc support them. In the pasbi discussion, people have pointed out various problems with using them

Re: [PATCH] Initialize a variable due to -Wmaybe-uninitialized.

2019-11-21 Thread Palmer Dabbelt via gcc-patches
On Mon, 18 Nov 2019 09:58:19 PST (-0800), l...@redhat.com wrote: On 11/18/19 6:17 AM, Martin Liška wrote: Hi. The patch is about yet another bootstrap -Wmaybe-uninitialized warning. I've just tested that on risv64 cross compiler with latest trunk. Ready to be installed? Thanks, Martin gcc/Cha