Re: [PATCH] RISC-V: allow -fno-plt to disable PLT

2024-10-31 Thread Kito Cheng
Thanks, just one minor comment: could you just make it become an alias of -fplt (e.g. "Alias(fplt)") and just check flag_plt? On Thu, Oct 31, 2024 at 1:35 PM Yangyu Chen wrote: > > Currently, the RISC-V target uses the target specific mplt option to > control PLT generation. This patch deprecates

[PATCH] RISC-V: allow -fno-plt to disable PLT

2024-10-30 Thread Yangyu Chen
Currently, the RISC-V target uses the target specific mplt option to control PLT generation. This patch deprecates the target specific mplt option and uses the common fplt option instead. This allows users to use the same option for most targets. Since both fplt and mplt are initialized to 1, it's