This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite] fix test gcc.dg/memcpy-1.c to avoid FAIL
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 02 Apr 2009 11:13:04 -0700
- Subject: [testsuite] fix test gcc.dg/memcpy-1.c to avoid FAIL
- Reply-to: janis187 at us dot ibm dot com
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" } } */