Re: [PATCH] x86: Add -mavoid-libcall for -mgeneral-regs-only

2020-05-20 Thread Jeff Law via Gcc-patches
On Fri, 2020-05-15 at 08:11 +0200, Uros Bizjak via Gcc-patches wrote: > On Fri, May 15, 2020 at 1:13 AM H.J. Lu wrote: > > The -mgeneral-regs-only option generates code that uses only the > > general-purpose registers. It prevents the compiler from using vector > > registers. But GCC may still g

Re: [PATCH] x86: Add -mavoid-libcall for -mgeneral-regs-only

2020-05-15 Thread Richard Biener via Gcc-patches
On Fri, May 15, 2020 at 8:27 AM Uros Bizjak via Gcc-patches wrote: > > On Fri, May 15, 2020 at 1:13 AM H.J. Lu wrote: > > > > The -mgeneral-regs-only option generates code that uses only the > > general-purpose registers. It prevents the compiler from using vector > > registers. But GCC may sti

Re: [PATCH] x86: Add -mavoid-libcall for -mgeneral-regs-only

2020-05-14 Thread Uros Bizjak via Gcc-patches
On Fri, May 15, 2020 at 1:13 AM H.J. Lu wrote: > > The -mgeneral-regs-only option generates code that uses only the > general-purpose registers. It prevents the compiler from using vector > registers. But GCC may still generate calls to memcpy, memmove, memset > and memcmp library functions. In

[PATCH] x86: Add -mavoid-libcall for -mgeneral-regs-only

2020-05-14 Thread H.J. Lu via Gcc-patches
The -mgeneral-regs-only option generates code that uses only the general-purpose registers. It prevents the compiler from using vector registers. But GCC may still generate calls to memcpy, memmove, memset and memcmp library functions. In the GNU C library, these library functions are implementa