public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [SH][committed] Fix gcc.target/sh/pr54680.c test
@ 2015-03-10  8:56 Oleg Endo
  0 siblings, 0 replies; only message in thread
From: Oleg Endo @ 2015-03-10  8:56 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 435 bytes --]

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.

[-- Attachment #2: sh_pr54680_test_ipa.patch --]
[-- Type: text/x-patch, Size: 748 bytes --]

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 } } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-10  8:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-10  8:56 [SH][committed] Fix gcc.target/sh/pr54680.c test Oleg Endo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).