diff mbox

Fix PR testsuite/49222

Message ID BANLkTim83Qe4UdR-uZNvfRyvgN1foan=7g@mail.gmail.com
State Accepted
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.
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)
 {