From patchwork Tue Aug 24 03:29:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jack Howarth X-Patchwork-Id: 62538 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 A19F6B70A5 for ; Tue, 24 Aug 2010 13:30:05 +1000 (EST) Received: (qmail 27184 invoked by alias); 24 Aug 2010 03:30:02 -0000 Received: (qmail 27129 invoked by uid 22791); 24 Aug 2010 03:30:01 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL, BAYES_05, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bromo.med.uc.edu (HELO bromo.med.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Tue, 24 Aug 2010 03:29:56 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id 2CF8CB005D for ; Mon, 23 Aug 2010 23:29:54 -0400 (EDT) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id o7O3TsLH027115 for gcc-patches@gcc.gnu.org; Mon, 23 Aug 2010 23:29:54 -0400 Date: Mon, 23 Aug 2010 23:29:54 -0400 From: Jack Howarth To: gcc-patches@gcc.gnu.org Subject: [PATCH] Require nonpic effective target for gcc.target/i386/volatile-2.c Message-ID: <20100824032954.GA27113@bromo.med.uc.edu> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) 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 The attached patch eliminates the failures of... FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_0(\\(%rip\\))? FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_1(\\(%rip\\))? FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_2(\\(%rip\\))? FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_3(\\(%rip\\))? FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_4(\\(%rip\\))? FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_5(\\(%rip\\))? FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t]obj_5(\\(%rip\\))?, FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_6(\\(%rip\\))? FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_7(\\(%rip\\))? FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_8(\\(%rip\\))? on *86-apple-darwin* at -m32 due the -fPIC default on darwin. Tested on x86-64-apple-darwin10 at -m32. Okay for gcc trunk? Jack 2010-08-24 Jack Howarth * testsuite/gcc.target/i386/volatile-2.c: Require nonpic effective target. Index: gcc/testsuite/gcc.target/i386/volatile-2.c =================================================================== --- gcc/testsuite/gcc.target/i386/volatile-2.c (revision 163490) +++ gcc/testsuite/gcc.target/i386/volatile-2.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target nonpic } */ /* { dg-options "-O2" } */ /* Check volatiles are written, read or not re-read consistently */