Re: PING^1 [PATCH] i386: Disallow sibcall when calling ifunc functions with PIC register

2022-06-21 Thread Uros Bizjak via Gcc-patches
On Tue, Jun 21, 2022 at 4:46 PM H.J. Lu wrote: > > On Mon, Jun 20, 2022 at 7:51 AM Uros Bizjak wrote: > > > > On Mon, Jun 20, 2022 at 4:03 PM H.J. Lu wrote: > > > > > > On Tue, Jun 14, 2022 at 12:25 PM H.J. Lu wrote: > > > > > > > > Disallow siball when calling ifunc functions with PIC register

Re: PING^1 [PATCH] i386: Disallow sibcall when calling ifunc functions with PIC register

2022-06-21 Thread H.J. Lu via Gcc-patches
On Mon, Jun 20, 2022 at 7:51 AM Uros Bizjak wrote: > > On Mon, Jun 20, 2022 at 4:03 PM H.J. Lu wrote: > > > > On Tue, Jun 14, 2022 at 12:25 PM H.J. Lu wrote: > > > > > > Disallow siball when calling ifunc functions with PIC register so that > > > PIC register can be restored. > > > > > > gcc/ >

Re: PING^1 [PATCH] i386: Disallow sibcall when calling ifunc functions with PIC register

2022-06-20 Thread Uros Bizjak via Gcc-patches
On Mon, Jun 20, 2022 at 4:03 PM H.J. Lu wrote: > > On Tue, Jun 14, 2022 at 12:25 PM H.J. Lu wrote: > > > > Disallow siball when calling ifunc functions with PIC register so that > > PIC register can be restored. > > > > gcc/ > > > > PR target/105960 > > * config/i386/i386.cc (ix86

PING^1 [PATCH] i386: Disallow sibcall when calling ifunc functions with PIC register

2022-06-20 Thread H.J. Lu via Gcc-patches
On Tue, Jun 14, 2022 at 12:25 PM H.J. Lu wrote: > > Disallow siball when calling ifunc functions with PIC register so that > PIC register can be restored. > > gcc/ > > PR target/105960 > * config/i386/i386.cc (ix86_function_ok_for_sibcall): Return > false if PIC register is

[PATCH] i386: Disallow sibcall when calling ifunc functions with PIC register

2022-06-14 Thread H.J. Lu via Gcc-patches
Disallow siball when calling ifunc functions with PIC register so that PIC register can be restored. gcc/ PR target/105960 * config/i386/i386.cc (ix86_function_ok_for_sibcall): Return false if PIC register is used when calling ifunc functions. gcc/testsuite/ PR t