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

2021-03-12 Thread H.J. Lu via Gcc-patches
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: > > > > Update 'P' operand modifier for -fno-plt to support inline assembly > > statements. In 64-bit, we can always load function address with > > @GOTPCREL. In 32-bit, we load function addr

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

2021-03-12 Thread H.J. Lu via Gcc-patches
On Thu, Mar 11, 2021 at 11:27 PM Uros Bizjak wrote: > > On Thu, Mar 11, 2021 at 11:22 PM H.J. Lu wrote: > > > > Update 'P' operand modifier for -fno-plt to support inline assembly > > statements. In 64-bit, we can always load function address with > > @GOTPCREL. In 32-bit, we load function addr

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

2021-03-11 Thread Uros Bizjak via Gcc-patches
On Thu, Mar 11, 2021 at 11:22 PM H.J. Lu wrote: > > Update 'P' operand modifier for -fno-plt to support inline assembly > statements. In 64-bit, we can always load function address with > @GOTPCREL. In 32-bit, we load function address with @GOT only for > non-PIC since PIC register may not be av

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

2021-03-11 Thread Uros Bizjak via Gcc-patches
On Thu, Mar 11, 2021 at 11:22 PM H.J. Lu wrote: > > Update 'P' operand modifier for -fno-plt to support inline assembly > statements. In 64-bit, we can always load function address with > @GOTPCREL. In 32-bit, we load function address with @GOT only for > non-PIC since PIC register may not be av