On Fri, Dec 16, 2011 at 6:45 PM, Jakub Jelinek <ja...@redhat.com> wrote:
> Hi!
>
> This testcase apparently fails on 32-bit hppa (both hpux and linux),
> because the struct there is passed by callee copied reference
> (unlike most other targets or even 64-bit hppa).
> So "Will be eliminated" is printed 3 times instead of 4 times.
>
> This patch just XFAILs it.
>
> Tested with x86_64-linux -> hppa64-hp-hpux11.11,
> x86_64-linux -> hppa2.0w-hp-hpux11.11 and
> x86_64-linux -> hppa-unknown-linux-gnu crosses.
>
> Ok for trunk?

Ok.

Richard.

> 2011-12-16  Jakub Jelinek  <ja...@redhat.com>
>
>        PR testsuite/50803
>        * gcc.dg/ipa/inline-5.c: XFAIL for 32-bit hppa.
>
> --- gcc/testsuite/gcc.dg/ipa/inline-5.c.jj      2011-10-06 09:14:15.000000000 
> +0200
> +++ gcc/testsuite/gcc.dg/ipa/inline-5.c 2011-12-16 18:37:10.484707342 +0100
> @@ -31,6 +31,6 @@ accessreference (struct a *a)
>     /* Will be eliminated by inlining */
>  }
>
> -/* { dg-final { scan-ipa-dump-times "Will be eliminated" 4 "inline"  } } */
> +/* { dg-final { scan-ipa-dump-times "Will be eliminated" 4 "inline" { xfail 
> { { hppa*-*-* } && { ! hppa*64*-*-* } } } } } */
>  /* { dg-final { scan-ipa-dump-times "50. will be eliminated" 1 "inline"  } } 
> */
>  /* { dg-final { cleanup-ipa-dump "inline" } } */
>
>        Jakub

Reply via email to