https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100762
--- Comment #3 from Xi Ruoyao <xry111 at mengyan1223 dot wang> --- There is some strange interaction between -mmsa and -mloongson-mmi causing this. It can be reproduced by building pixman (which enables -mloongson-mmi by default) with -mmsa.