WebThis re-enables -msave-restore for shared libraries, and uses the t-slibgcc-libgcc file to get the save-restore routines included directly in shared libraries so that we don't need to indirect through the PLT to reach them, which doesn't work. ... There are 4 gcc regressions, but 3 are sibling call tests that can't work with the save-restore ... WebMay 30, 2024 · Here is the bugpoint-reduced test case for the SPEC failure when enabling -msave-restore and allowing tail calls: Run the command llc test.ll -mattr=+save-restore -o out.s. You will see the code generated is wrong: ... I'm not sure what GCC does exactly. but this seems to be the behaviour. I had reported above that I have already run that test ...
Toolchain Projects - Home - RISC-V International
WebOct 16, 2024 · register would work, because the compiler isn't expecting gp to ever. need to be call saved, but it might work. Making it call used is. more likely to work. If you are using -msave-restore, that could be a problem, as gp is not. handled by that code. If you are using the interrupt attribute, that. WebNov 18, 2024 · Summary. This introduces the use of a new compiler runtime library function which behaves the same as riscv_restore_N, however instead of returning to the callee … trevor tew anchorage
c - does gcc preserve callee save registers - Stack Overflow
Web-msave-restore-mno-save-restore. Do or don’t use smaller but slower prologue and epilogue code that uses library function calls. The default is to use fast inline prologues … Web16 hours ago · The two countries finalized their decision to normalize relations late Wednesday during the second meeting of the Bahraini-Qatari Follow-up Committee at the headquarters of the GCC General Secretariat in Riyadh. The Saudi-led quartet began its boycott of gas-rich Qatar in 2024, accusing it of funding terrorism and backing its … WebThe save restore optimization is enabled through the option -msave-restore and reduces the amount of code in the prologue and epilogue by using library functions instead of inline code to save and restore callee … trevor ternouth