Currently gcc.misc-tests/linkage.c fails because testsuite/gcc.misc-tests/linkage.exp does not have the support for -mabi=n32/-mabi=64 in it. "mips-sgi-irix6*" is supported and mips*-linux-gnu can be supported the same way.
I am going to fix it.
Created attachment 51390 [details] Patch
The trunk branch has been updated by Andrew Pinski <pinskia@gcc.gnu.org>: https://gcc.gnu.org/g:852fdc23a20d07087b5908b57ae7725f435732d5 commit r12-3301-g852fdc23a20d07087b5908b57ae7725f435732d5 Author: Andrew Pinski <apinski@marvell.com> Date: Wed Sep 1 00:13:51 2021 +0000 Add MIPS Linux support to gcc.misc-tests/linkage.c (testsuite/51748) This adds MIPS Linux support to gcc.misc-tests/linkage.exp. Basically copying what was done for MIPS IRIX and changing the options to be correct. OK? gcc/testsuite/ChangeLog: PR testsuite/51748 * gcc.misc-tests/linkage.exp: Add mips*-linux-* support.
Fixed.