This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testsuite] fix test gcc.dg/memcpy-1.c to avoid FAIL


This patch adds the use of a compiler option, as suggested in PR 
tree-optimization/31677, to avoid a test failure.  Tested on
powerpc64-linux with -m32/-m64, checked in on trunk and the 4.4
branch.

2009-04-02  Janis Johnson  <janis187@us.ibm.com>

	PR tree-optimization/31677
	* gcc.dg/memcpy-1.c: Add compiler option.

Index: gcc/testsuite/gcc.dg/memcpy-1.c
===================================================================
--- gcc/testsuite/gcc.dg/memcpy-1.c	(revision 145433)
+++ gcc/testsuite/gcc.dg/memcpy-1.c	(working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -fdump-tree-optimized --param sra-max-structure-size=32" } */
 /* PR36598 AVR fail maybe due to cost metrics */
 /* { dg-final { scan-tree-dump-times "nasty_local" 0 "optimized" { xfail { "avr-*-*" } } } } */
 /* { dg-final { cleanup-tree-dump "optimized" } } */



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]