From patchwork Wed Dec 27 08:05:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 853091 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-469832-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="vdbwLCi5"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3z65526cpcz9sQm for ; Wed, 27 Dec 2017 19:05:42 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=M+sUIXGjphtB1hUz26qCvrbRP2KOkhv6k4e4DgluP97h6r0DTi 1ro3CE+sD7h4QrtHs6wnaKTHUCT4uZ9Z6sEH0yKiArJ89vGVCvA54OF2appNK5k7 jiEmSqXo1XrvVURFdtFCWRCxJ4KEWrgEmTZ/q++or1bdPV0ofOs2A1PQM= 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:to:cc :from:subject:message-id:date:mime-version:content-type; s= default; bh=GBSuBQNCYpjm59tE12D2rO+Rdeg=; b=vdbwLCi5sbIN/Rn5eE2K nHX/NDED2jpOBhrLf1iRrKs8DPK4CDwKRQtdsWNjnmGW0Rv34Wh4C/AqBTCMZAGq 9YgDUPVV05ysVVL8NQqQMZ1f66f0a/fhzbf0t+ZXZzewNISNVy79MJcscUyWy++d ZTazDYHhjHuZj/xnw6OA37o= Received: (qmail 120820 invoked by alias); 27 Dec 2017 08:05:35 -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 120804 invoked by uid 89); 27 Dec 2017 08:05:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=Hx-languages-length:1250 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 27 Dec 2017 08:05:33 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1eU6iP-0005c2-K9 from Tom_deVries@mentor.com ; Wed, 27 Dec 2017 00:05:30 -0800 Received: from [172.30.72.108] (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Wed, 27 Dec 2017 08:05:25 +0000 To: Jakub Jelinek CC: GCC Patches , Thomas Schwinge , =?utf-8?q?Martin_Li=C5=A1k?= =?utf-8?q?a?= From: Tom de Vries Subject: [libgomp, testsuite, committed] Workaround PR83046 in gang-static-2.c Message-ID: <616b3991-146e-68e4-8b86-256f7d19692f@mentor.com> Date: Wed, 27 Dec 2017 09:05:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) Hi, this patches fixes a problem in the gang-static-2.c test-case, which works around the PR83046 ICE, re-enabling the test-case. Tested libgomp for x86_64 with nvptx accelerator. Committed. Thanks, - Tom Workaround PR83046 in gang-static-2.c 2017-12-27 Tom de Vries PR c++/83046 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static) (test_nonstatic): Fix return type to workaround PR83046. --- libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-2.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-2.c index ce9632c..6de739a 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-2.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-2.c @@ -14,7 +14,7 @@ __asm__ volatile ("mov.u32 %0,%%ctaid.x;" : "=r" (__r)); \ __r; }) : (I)) -int +void test_static(int *a, int num_gangs, int sarg) { int i, j; @@ -27,7 +27,7 @@ test_static(int *a, int num_gangs, int sarg) assert (a[i*sarg+j] == i % num_gangs); } -int +void test_nonstatic(int *a, int gangs) { int i, j;