Hi, on avr targets, the aggregate that we test to be totally scalarized away is deemed to be to big for it - this is determined by the value of MOVE_RATIO which is very low unless redefined by the target. This is analogous situation to what we had with testsuite/gcc.dg/tree-ssa/pr42585.C a year ago, the solution there was also to skip the test.
And that's exactly what the patch below does, verified by running make -k check RUNTESTFLAGS="tree-ssa.exp=sra-12.c" on i686-linux and an avr cross. Because of the pr42585.C precedent I consider it obvious and will commit it tomorrow unless someone objects. Thanks, Martin 2011-07-07 Martin Jambor <mjam...@suse.cz> testsuite/ * gcc.dg/tree-ssa/sra-12.c: Skip dump scan on avr targets. Index: src/gcc/testsuite/gcc.dg/tree-ssa/sra-12.c =================================================================== --- src.orig/gcc/testsuite/gcc.dg/tree-ssa/sra-12.c +++ src/gcc/testsuite/gcc.dg/tree-ssa/sra-12.c @@ -21,5 +21,5 @@ int foo (struct S *p) *p = l; } -/* { dg-final { scan-tree-dump-times "l;" 0 "release_ssa"} } */ +/* { dg-final { scan-tree-dump-times "l;" 0 "release_ssa" { target { ! "avr*-*-*" } } } } */ /* { dg-final { cleanup-tree-dump "release_ssa" } } */