https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108682
--- Comment #9 from Ian Lance Taylor <ian at airs dot com> --- If you really want to you can port the LoongArch changes back to 1.18. I don't think that would be too hard--it's mostly a matter of adding build tags in various places. But it's up to you.