From patchwork Sun May 29 16:36:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Rosen X-Patchwork-Id: 1661 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:54:00 -0000 Delivered-To: patches@linaro.org Received: by 10.52.110.9 with SMTP id hw9cs197529vdb; Sun, 29 May 2011 09:36:14 -0700 (PDT) Received: by 10.91.67.7 with SMTP id u7mr3494906agk.103.1306686973724; Sun, 29 May 2011 09:36:13 -0700 (PDT) Received: from mail-yx0-f178.google.com (mail-yx0-f178.google.com [209.85.213.178]) by mx.google.com with ESMTPS id c13si8268499ank.170.2011.05.29.09.36.12 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 May 2011 09:36:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.213.178 is neither permitted nor denied by best guess record for domain of ira.rosen@linaro.org) client-ip=209.85.213.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.213.178 is neither permitted nor denied by best guess record for domain of ira.rosen@linaro.org) smtp.mail=ira.rosen@linaro.org Received: by yxa15 with SMTP id 15so1503147yxa.37 for ; Sun, 29 May 2011 09:36:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.73.32 with SMTP id v32mr3750155yba.418.1306686972071; Sun, 29 May 2011 09:36:12 -0700 (PDT) Received: by 10.150.138.14 with HTTP; Sun, 29 May 2011 09:36:11 -0700 (PDT) Date: Sun, 29 May 2011 19:36:11 +0300 Message-ID: Subject: [patch] Fix PR testsuite/49222 From: Ira Rosen To: gcc-patches@gcc.gnu.org Cc: Patch Tracking 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. 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) {