https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118614
--- Comment #3 from Charlie <charlie at rivosinc dot com> --- Oh okay, thank you for clarifying this behavior for me. I was assuming that in a naked function there would be different behavior with register variables, but I see that is an invalid assumption and it was just coincidentally working in other cases that I was using it...