Patchwork Fix PR testsuite/49222

login
register
mail settings
Submitter Ira Rosen
Date May 29, 2011, 4:36 p.m.
Message ID <BANLkTim83Qe4UdR-uZNvfRyvgN1foan=7g@mail.gmail.com>
Download mbox | patch
Permalink /patch/97844/
State New
Headers show

Comments

Ira Rosen - May 29, 2011, 4:36 p.m.
Hi,

This patch uses MAP_ANON if MAP_ANONYMOUS is not defined fixing this
test's failure on x86_64-apple-darwin10.

Tested on x86_64-suse-linux and on x86_64-apple-darwin10 (by Dominique).
OK to apply?

Thanks,
Ira

testsuite/ChangeLog:

     PR testsuite/49222
     * gcc.dg/vect/pr49038.c: Use MAP_ANON if MAP_ANONYMOUS
     is not defined.
Richard Guenther - May 29, 2011, 4:38 p.m.
On Sun, May 29, 2011 at 6:36 PM, Ira Rosen <ira.rosen@linaro.org> wrote:
> Hi,
>
> This patch uses MAP_ANON if MAP_ANONYMOUS is not defined fixing this
> test's failure on x86_64-apple-darwin10.
>
> Tested on x86_64-suse-linux and on x86_64-apple-darwin10 (by Dominique).
> OK to apply?

Ok.

Thanks,
Richard.

> Thanks,
> Ira
>
> testsuite/ChangeLog:
>
>     PR testsuite/49222
>     * gcc.dg/vect/pr49038.c: Use MAP_ANON if MAP_ANONYMOUS
>     is not defined.
>
> Index: testsuite/gcc.dg/vect/pr49038.c
> ===================================================================
> --- testsuite/gcc.dg/vect/pr49038.c     (revision 174393)
> +++ testsuite/gcc.dg/vect/pr49038.c     (working copy)
> @@ -6,6 +6,10 @@
>  #define ADDRESS 0x1122000000
>  #define TYPE unsigned short
>
> +#ifndef MAP_ANONYMOUS
> +#define MAP_ANONYMOUS MAP_ANON
> +#endif
> +
>  void __attribute__((noinline))
>  foo (TYPE *__restrict a, TYPE *__restrict b)
>  {
>

Patch

Index: testsuite/gcc.dg/vect/pr49038.c
===================================================================
--- testsuite/gcc.dg/vect/pr49038.c     (revision 174393)
+++ testsuite/gcc.dg/vect/pr49038.c     (working copy)
@@ -6,6 +6,10 @@ 
 #define ADDRESS 0x1122000000
 #define TYPE unsigned short

+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
 void __attribute__((noinline))
 foo (TYPE *__restrict a, TYPE *__restrict b)
 {