https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97417
--- Comment #52 from Jim Wilson <wilson at gcc dot gnu.org> --- I did some simple testing of my patch alone. I modified the riscv-gnu-toolchain makefile to use -Os to build all libraries, built a rv32imac/ilp32 toolchain, and looked at library code size. I see a few cases where my patch gives smaller code, and no obvious cases where it gives larger code, so I think it is OK. I haven't tried a full test with my patch combined with Levy's patch minus the combine change.