Re: [PATCH v2] LoongArch: Add support code model extreme.

2022-08-19 Thread Xi Ruoyao via Gcc-patches
On Fri, 2022-08-19 at 09:56 +0800, Lulu Cheng wrote: > v1 -> v2: > - Modify some description information. > - Add options -W[no]extreme-plt, warn about code model extreme not support > plt mode, > and then disable plt. I think we can make -mcmodel=large imply -fno-plt, and reject if user uses "-f

[PATCH v2] LoongArch: Add support code model extreme.

2022-08-18 Thread Lulu Cheng
v1 -> v2: - Modify some description information. - Add options -W[no]extreme-plt, warn about code model extreme not support plt mode, and then disable plt. --- Use five instructions to calculate a signed 64-bit offset relative to the pc. gcc/ChangeLog: