Hi!

Since recent gimplifier changes, memcpy at least on some architectures might
not be folded already during gimplification, so we need to wait until ccp1.

Regtested on x86_64-linux and i686-linux, tested with hppa-linux
cross-compiler too, ok for trunk?

2015-03-23  Jakub Jelinek  <ja...@redhat.com>

        PR testsuite/65506
        * gcc.dg/pr29215.c: Dump and analyse ccp1 dump instead of
        gimple dump.

--- gcc/testsuite/gcc.dg/pr29215.c.jj   2008-11-21 14:05:09.000000000 +0100
+++ gcc/testsuite/gcc.dg/pr29215.c      2015-03-23 15:02:06.252770764 +0100
@@ -1,6 +1,6 @@
 /* PR middle-end/29215 */
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-gimple" } */
+/* { dg-options "-O2 -fdump-tree-ccp1" } */
 
 char buf[5 * sizeof (int) + 1] __attribute__((aligned (__alignof__ (int))));
 
@@ -29,5 +29,5 @@ main (void)
   return 0;
 }
 
-/* { dg-final { scan-tree-dump-not "memcpy" "gimple" } } */
-/* { dg-final { cleanup-tree-dump "gimple" } } */
+/* { dg-final { scan-tree-dump-not "memcpy" "ccp1" } } */
+/* { dg-final { cleanup-tree-dump "ccp1" } } */

        Jakub

Reply via email to