[PATCH v3] x86: Update 'P' operand modifier for -fno-plt

2021-03-13 Thread H.J. Lu via Gcc-patches
GOT with 'P' operand modifier to avoid PLT. > > > > + NB: This works only with call or jmp. */ > > > > + const char *xasm; > > > > + if (TARGET_64BIT) > > > > + xasm = "{*%p0@GOTPCREL(

Re: [PATCH v3] x86: Update 'P' operand modifier for -fno-plt

2021-03-14 Thread Uros Bizjak via Gcc-patches
On Sat, Mar 13, 2021 at 8:39 PM H.J. Lu wrote: > > On Fri, Mar 12, 2021 at 8:37 AM Uros Bizjak wrote: > > > > On Fri, Mar 12, 2021 at 2:20 PM H.J. Lu wrote: > > > > > > On Thu, Mar 11, 2021 at 11:21 PM Uros Bizjak wrote: > > > > > > > > On Thu, Mar 11, 2021 at 11:22 PM H.J. Lu wrote: > > > > >

Re: [PATCH v3] x86: Update 'P' operand modifier for -fno-plt

2021-03-14 Thread H.J. Lu via Gcc-patches
On Sun, Mar 14, 2021 at 11:49 AM Uros Bizjak wrote: > > On Sat, Mar 13, 2021 at 8:39 PM H.J. Lu wrote: > > > > On Fri, Mar 12, 2021 at 8:37 AM Uros Bizjak wrote: > > > > > > On Fri, Mar 12, 2021 at 2:20 PM H.J. Lu wrote: > > > > > > > > On Thu, Mar 11, 2021 at 11:21 PM Uros Bizjak wrote: > > >

Re: [PATCH v3] x86: Update 'P' operand modifier for -fno-plt

2021-03-14 Thread Uros Bizjak via Gcc-patches
On Sun, Mar 14, 2021 at 8:14 PM H.J. Lu wrote: > > > Done. Here is the updated patch. Tested on Linux/x86-64. OK for master? > > > > I don't understand the purpose of the current_output_insn check and I > > don't know if the usage of current_output_insn is correct. The > > comments are not help

Re: [PATCH v3] x86: Update 'P' operand modifier for -fno-plt

2021-03-14 Thread H.J. Lu via Gcc-patches
On Sun, Mar 14, 2021 at 12:43 PM Uros Bizjak wrote: > > On Sun, Mar 14, 2021 at 8:14 PM H.J. Lu wrote: > > > > Done. Here is the updated patch. Tested on Linux/x86-64. OK for > > > > master? > > > > > > I don't understand the purpose of the current_output_insn check and I > > > don't know if