Re: [PATCH] x86_64: Fix up -fpic -mcmodel=large -fno-plt [PR98063]

2020-12-01 Thread Uros Bizjak via Gcc-patches
On Tue, Dec 1, 2020 at 9:53 AM Jakub Jelinek wrote: > > Hi! > > On the following testcase with -fpic -mcmodel=large -fno-plt we emit > call puts@GOTPCREL(%rip) > but that is not really appropriate for CM_LARGE_PIC, the .text can be larger > than 2GB in that case and the .got slot further away from

[PATCH] x86_64: Fix up -fpic -mcmodel=large -fno-plt [PR98063]

2020-12-01 Thread Jakub Jelinek via Gcc-patches
Hi! On the following testcase with -fpic -mcmodel=large -fno-plt we emit call puts@GOTPCREL(%rip) but that is not really appropriate for CM_LARGE_PIC, the .text can be larger than 2GB in that case and the .got slot further away from %rip than what can fit into the signed 32-bit immediate. The fol