https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116204
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- That is long is 32bit on ILP32 targets while 64bit on LP64 targets. So the difference between RV32 and RV64 is rather the size of long being different rather than a miscompiling.