testsuite: mips: use noinline attribute instead of -fno-inline
authorXi Ruoyao <xry111@mengyan1223.wang>
Tue, 22 Jun 2021 06:15:45 +0000 (14:15 +0800)
committerXi Ruoyao <xry111@mengyan1223.wang>
Fri, 9 Jul 2021 06:32:04 +0000 (14:32 +0800)
commit3b33b1136d5ba1903a56fa601a848accc3db46ef
treef37ef0d0f104ce802610fb6650ce82685bde4349
parent82625a42e652d52fc6bbe6070f8d0589d5e0c8ad
testsuite: mips: use noinline attribute instead of -fno-inline

mips.exp does not support -fno-inline, causing the tests return "ERROR:
Unrecognised option: -fno-inline for dg-options ... ".

Use noinline attribute like other mips target tests, to workaround it.

gcc/testsuite/

* gcc.target/mips/cfgcleanup-jalr2.c: Remove -fno-inline and add
  __attribute__((noinline)).
* gcc.target/mips/cfgcleanup-jalr3.c: Likewise.
gcc/testsuite/gcc.target/mips/cfgcleanup-jalr2.c
gcc/testsuite/gcc.target/mips/cfgcleanup-jalr3.c