From patchwork Tue Oct 8 15:36:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 281504 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 511322C00CD for ; Wed, 9 Oct 2013 02:36:48 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; q=dns; s=default; b=UCucOYl1A1cdWiyS9WNMQTfyVtcMLa+2dm7DHIBYeyX rkss8Z7NlvFIMxdbRa12ZS5l+06J0Tb3A9fEgFENkKTFY/+Qq4sviNF4BZk8l2Sh rtS0RePY8kb0Nai3mfRvQjLM97OsD1w3wmo3/HzgDo6iPBvRn9Mf09gC9eh3WTO8 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; s=default; bh=oWVK2e6tkIfM9zqgg+0FfwwPCLw=; b=M8e5+Zz3CJcb1ZMne x96g2CjKwmLd/hbpHHcNjDFv6WConXOLWoAv2XyejoPIoWU8hTY87jg36hx2fcAJ lg2TGYE2r4VIoPK1Ht9cxRjeWpSEZeHkCBUBeFNQ2nDYVR+Hvn1E7EV1h4WXpWnn jklCLn4NdGcU+T5oeSSo803Qfw= Received: (qmail 17770 invoked by alias); 8 Oct 2013 15:36:42 -0000 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 Received: (qmail 17757 invoked by uid 89); 8 Oct 2013 15:36:41 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 Oct 2013 15:36:41 +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 r98Fad43001823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 8 Oct 2013 11:36:39 -0400 Received: from tucnak.zalov.cz (vpn1-7-130.ams2.redhat.com [10.36.7.130]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r98Fab6x029971 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 8 Oct 2013 11:36:39 -0400 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.7/8.14.7) with ESMTP id r98Fabhf026786 for ; Tue, 8 Oct 2013 17:36:37 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.7/8.14.7/Submit) id r98FaaJR026785 for gcc-patches@gcc.gnu.org; Tue, 8 Oct 2013 17:36:36 +0200 Date: Tue, 8 Oct 2013 17:36:36 +0200 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [gomp4] Small libgomp testsuite tweaks Message-ID: <20131008153636.GT30970@tucnak.zalov.cz> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Hi! I've noticed that udr-8.C failed on i686-linux, apparently because i was uninitialized. udr-3.c had the same bug, but didn't FAIL because of that on either x86_64-linux nor i686-linux, and udr-2.c had just unused variable. 2013-10-08 Jakub Jelinek * testsuite/libgomp.c/udr-2.c (main): Remove unused variable i. * testsuite/libgomp.c/udr-3.c (main): Initialize i to 0. * testsuite/libgomp.c++/udr-8.C (main): Likewise. Jakub --- libgomp/testsuite/libgomp.c/udr-2.c.jj 2013-09-19 09:12:43.000000000 +0200 +++ libgomp/testsuite/libgomp.c/udr-2.c 2013-10-08 17:28:54.687344973 +0200 @@ -11,7 +11,7 @@ struct S { int s; }; int main () { - int i, u = 0, q = 0; + int u = 0, q = 0; struct S s, t; s.s = 0; t.s = 0; #pragma omp parallel reduction(+:s, q) reduction(foo:t, u) --- libgomp/testsuite/libgomp.c/udr-3.c.jj 2013-09-19 09:12:43.000000000 +0200 +++ libgomp/testsuite/libgomp.c/udr-3.c 2013-10-08 17:29:24.958191565 +0200 @@ -17,7 +17,7 @@ int main () { struct S s; - int i; + int i = 0; s.s = 0; #pragma omp parallel reduction (+:s, i) { --- libgomp/testsuite/libgomp.c++/udr-8.C.jj 2013-09-18 12:43:23.000000000 +0200 +++ libgomp/testsuite/libgomp.c++/udr-8.C 2013-10-08 17:29:51.235059721 +0200 @@ -25,7 +25,7 @@ int main () { S s, t; - int i; + int i = 0; #pragma omp parallel reduction (+:s, i) reduction (*:t) { if (s.s != 0 || t.s != 0)