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]

[PATCH] PR31677 fixed by passing --param sra-max-structure-size=32


The attached patch modifies the gcc.dg/memcpy-1.c testcase to
pass "--param sra-max-structure-size=32" as suggested by Andrew
Pinksi in the bug report for PR 31677. This changes eliminates
the memcpy-1.c testsuite failures at -m32 on powerpc-apple-darwin9.
Okay for gcc trunk?
                Jack

2007-12-24  Jack Howarth  <howarth@bromo.med.uc.edu>
	PR tree-optimization/31677
	* gcc.dg/memcpy-1.c: Pass "--param sra-max-structure-size=32".

Index: gcc.dg/memcpy-1.c
===================================================================
--- gcc.dg/memcpy-1.c	(revision 131159)
+++ 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" } */
 /* { dg-final { scan-tree-dump-times "nasty_local" 0 "optimized" } } */
 /* { dg-final { cleanup-tree-dump "optimized" } } */
 struct a {int a,b,c;} a;


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