https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78646
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- A reference type is treated as a pointer type all the way through the middle end of gcc. Why is there an issue with that for your target?