https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104831
Patrick O'Neill <patrick at rivosinc dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #11 from Patrick O'Neill <patrick at rivosinc dot com> --- This has been resolved on trunk: https://inbox.sourceware.org/gcc-patches/20230427162301.1151333-1-patr...@rivosinc.com/ The cover letter there contains a lot more context about why the mappings are wrong and why we implemented a strengthened version of Table A.6. These mappings are included in the RISC-V PSABI doc: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/378 And this series has been backported to be included in GCC 13.3 (along with a bugfix): https://inbox.sourceware.org/gcc-patches/20230725180206.284777-1-patr...@rivosinc.com/