Hi,
The SH specific test gcc.target/sh/pr54680.c has started to fail
recently. This is because of improved IPA optimizations. For this test
the IPA optimization should be turned off.
Tested with
make -k check-gcc RUNTESTFLAGS="sh.exp=pr54680.c --target_board=sh-sim
\{-m2/-ml,-m2/-mb,-m2a/-mb,-m4/-ml,-m4/-mb,-m4a/-ml,-m4a/-mb}"
Committed as r221309.
gcc/testsuite/ChangeLog:
* gcc.target/sh/pr54680.c: Add -fno-ipa-icf option.
Index: gcc/testsuite/gcc.target/sh/pr54680.c
===================================================================
--- gcc/testsuite/gcc.target/sh/pr54680.c (revision 221307)
+++ gcc/testsuite/gcc.target/sh/pr54680.c (working copy)
@@ -2,7 +2,7 @@
to int. Notice that we can't count just "lds" insns because mode switches
use "lds.l". */
/* { dg-do compile } */
-/* { dg-options "-O2 -mfsca -funsafe-math-optimizations" } */
+/* { dg-options "-O2 -mfsca -funsafe-math-optimizations -fno-ipa-icf" } */
/* { dg-skip-if "" { "sh*-*-*" } { "-m1" "-m2*" "-m3*" "-m4al" "*nofpu" "-m4-340*" "-m4-400*" "-m4-500*" "-m5*" } { "" } } */
/* { dg-final { scan-assembler-times "fsca" 7 } } */
/* { dg-final { scan-assembler-times "shad" 1 } } */