From patchwork Thu Jan 5 00:54:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Marlier X-Patchwork-Id: 134394 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 D0E91B6FAA for ; Thu, 5 Jan 2012 11:55:03 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1326329704; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC: Subject:Content-Type:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=B54qvW1A9nIrPXmw/mBk24MvDsA=; b=JLTxyefVvn6o9ki I7UD0AMfFquDAE8VlfZU7A7+7zRLIHzTxmD1X7ESrQsghAf2rzfUsQhsvgpGYYe2 fohKrQdT2y9EXykCbStaQjG/lgKfxx6DKAnn6abwysS6j334VEev1Rud8gFXRFF5 62IwHHK/bG0dO52nUsy2PqEAjID0= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=cQIMrp+TgOwtpJ17PeTENCan+TKqy+h50d6feyGBZJV43EK67IrJv9UCAWaa4L KAxIFQ4xCIGWSBKz409vClK+dNeFisJItP+vC/L6EwrmBzuAoOOmg5AkU0zOuJzc G7XhATJx3XLJ7xffyaTK+Oa3zFJNEax/XPQME0dT4at3I=; Received: (qmail 7719 invoked by alias); 5 Jan 2012 00:54:57 -0000 Received: (qmail 7709 invoked by uid 22791); 5 Jan 2012 00:54:56 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-qy0-f175.google.com (HELO mail-qy0-f175.google.com) (209.85.216.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Jan 2012 00:54:41 +0000 Received: by qcqw6 with SMTP id w6so10694qcq.20 for ; Wed, 04 Jan 2012 16:54:40 -0800 (PST) Received: by 10.229.77.12 with SMTP id e12mr21820087qck.124.1325724880475; Wed, 04 Jan 2012 16:54:40 -0800 (PST) Received: from [192.168.2.3] (cpe-69-207-95-157.rochester.res.rr.com. [69.207.95.157]) by mx.google.com with ESMTPS id v5sm39235124qao.21.2012.01.04.16.54.39 (version=SSLv3 cipher=OTHER); Wed, 04 Jan 2012 16:54:39 -0800 (PST) Message-ID: <4F04F4CE.5060302@gmail.com> Date: Wed, 04 Jan 2012 19:54:38 -0500 From: Patrick Marlier User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0 MIME-Version: 1.0 To: gcc-patches CC: Torvald Riegel , Richard Henderson , Aldy Hernandez Subject: [libitm] fix reentrant.c testcase X-IsSubscribed: yes 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 In the reentrant.c testcase, the first transaction has no transactional access and thus removed. In order to keep this transaction, I added a shared access inside. Tested on i686. OK to commit? (I don't have an account, so thanks in advance to committer) --- Patrick Marlier. 2012-01-04 Patrick Marlier * testsuite/libitm.c/reentrant.c: Adjust testcase. Index: testsuite/libitm.c/reentrant.c =================================================================== --- testsuite/libitm.c/reentrant.c (revision 182883) +++ testsuite/libitm.c/reentrant.c (working copy) @@ -1,4 +1,4 @@ -/* { dg-do run { xfail *-*-* } } +/* { dg-do run } /* { dg-options "-pthread" } */ /* Tests that new transactions can be started from both transaction_pure and @@ -36,7 +36,7 @@ int __attribute__((transaction_unsafe)) unsafe(int static void *thread (void *dummy __attribute__((unused))) { __transaction_atomic { - pure(1); + pure(x); } __transaction_relaxed { unsafe(1);