Re: [PATCH v3] x86: Handle TARGET_INDIRECT_BRANCH_REGISTER for -fno-plt

2025-02-01 Thread H.J. Lu
On Sat, Feb 1, 2025 at 6:33 PM H.J. Lu wrote: > > On Sat, Feb 1, 2025 at 5:52 PM Uros Bizjak wrote: > > > > On Sat, Feb 1, 2025 at 9:51 AM H.J. Lu wrote: > > > > > > If TARGET_INDIRECT_BRANCH_REGISTER is true, indirect call and jump should > > > use register, not memory. Update Bs, Bw and Bz co

Re: [PATCH v3] x86: Handle TARGET_INDIRECT_BRANCH_REGISTER for -fno-plt

2025-02-01 Thread H.J. Lu
On Sat, Feb 1, 2025 at 5:52 PM Uros Bizjak wrote: > > On Sat, Feb 1, 2025 at 9:51 AM H.J. Lu wrote: > > > > If TARGET_INDIRECT_BRANCH_REGISTER is true, indirect call and jump should > > use register, not memory. Update Bs, Bw and Bz constraints to disable > > indirect call over memmory if TARGET

Re: [PATCH v3] x86: Handle TARGET_INDIRECT_BRANCH_REGISTER for -fno-plt

2025-02-01 Thread Uros Bizjak
On Sat, Feb 1, 2025 at 9:51 AM H.J. Lu wrote: > > If TARGET_INDIRECT_BRANCH_REGISTER is true, indirect call and jump should > use register, not memory. Update Bs, Bw and Bz constraints to disable > indirect call over memmory if TARGET_INDIRECT_BRANCH_REGISTER true, change > x32 call over GOT slot

[PATCH v3] x86: Handle TARGET_INDIRECT_BRANCH_REGISTER for -fno-plt

2025-02-01 Thread H.J. Lu
If TARGET_INDIRECT_BRANCH_REGISTER is true, indirect call and jump should use register, not memory. Update Bs, Bw and Bz constraints to disable indirect call over memmory if TARGET_INDIRECT_BRANCH_REGISTER true, change x32 call over GOT slot to call over register and also disable sibcall over memo