From patchwork Fri Dec 9 17:50:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aldy Hernandez X-Patchwork-Id: 130440 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 45432B6F62 for ; Sat, 10 Dec 2011 04:51:01 +1100 (EST) Received: (qmail 4977 invoked by alias); 9 Dec 2011 17:50:58 -0000 Received: (qmail 4963 invoked by uid 22791); 9 Dec 2011 17:50:56 -0000 X-SWARE-Spam-Status: No, hits=-7.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Dec 2011 17:50:39 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pB9HodLh016613 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Dec 2011 12:50:39 -0500 Received: from houston.quesejoda.com (vpn-8-8.rdu.redhat.com [10.11.8.8]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id pB9HocsP020707; Fri, 9 Dec 2011 12:50:39 -0500 Message-ID: <4EE24A6E.70904@redhat.com> Date: Fri, 09 Dec 2011 11:50:38 -0600 From: Aldy Hernandez User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 MIME-Version: 1.0 To: Iain Sandoe CC: gcc-patches Subject: Re: PR/50076 make c-c++-common/cxxbitfields-3.c work in Darwin References: <4EE246FD.2000704@redhat.com> In-Reply-To: Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org > scan-assembler can be target-dependent if that would (as I read the > above) help. Well, whadayaknow... In that case we can have an x86 variant for Darwin, and one for everything else x86. OK? testsuite/ * c-c++-common/cxxbitfields-3.c: Adjust regexp. Index: testsuite/c-c++-common/cxxbitfields-3.c =================================================================== --- testsuite/c-c++-common/cxxbitfields-3.c (revision 182028) +++ testsuite/c-c++-common/cxxbitfields-3.c (working copy) @@ -18,4 +18,5 @@ void setit() var.j = 5; } -/* { dg-final { scan-assembler "movl.*, var" } } */ +/* { dg-final { scan-assembler "movl.*, \\(%" { target *-*-darwin } } } */ +/* { dg-final { scan-assembler "movl.*, var" { target { ! *-*-darwin } } } } */