diff mbox

Fix PR testsuite/49222

Message ID BANLkTim83Qe4UdR-uZNvfRyvgN1foan=7g@mail.gmail.com
State New
Headers show

Commit Message

Ira Rosen May 29, 2011, 4:36 p.m. UTC
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.

Comments

Richard Biener May 29, 2011, 4:38 p.m. UTC | #1
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)
>  {
>
diff mbox

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)
 {