From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88837 invoked by alias); 5 Sep 2017 06:43:57 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 88712 invoked by uid 89); 5 Sep 2017 06:43:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.6 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=fn6 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; Tue, 05 Sep 2017 06:43:41 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1dp7aE-0002Fn-DK from Tom_deVries@mentor.com ; Mon, 04 Sep 2017 23:43:38 -0700 Received: from [127.0.0.1] (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 5 Sep 2017 07:43:34 +0100 Subject: [testsuite, committed] Fix call arguments mismatch in gcc.c-torture/compile/pr82052.c To: gcc-patches References: CC: Jeff Law From: Tom de Vries Message-ID: Date: Tue, 05 Sep 2017 06:43:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------554698CA918A5B85A77D70A0" 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) X-SW-Source: 2017-09/txt/msg00215.txt.bz2 --------------554698CA918A5B85A77D70A0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 651 [ was: Re: [PATCH][committed] Always initialize hash table elements ] On 09/01/2017 05:39 PM, Jeff Law wrote: > * gcc.c-torture/compile/pr82052.c: New test. > diff --git a/gcc/testsuite/gcc.c-torture/compile/pr82052.c b/gcc/testsuite/gcc.c-torture/compile/pr82052.c > +short fn2() {} > + x = fn5(f && fn2(t46 = g = t52, > + fn6(fn7(fn8(f, fn9(fn10(t51, f, t53, t53)))) < t21, t53))); Hi, this patch fixes a call arguments mismatch in gcc.c-torture/compile/pr82052.c when compiling for nvptx. I've verified that the test-case is still failing when the patch for PR82052 is reverted. Committed. Thanks, - Tom --------------554698CA918A5B85A77D70A0 Content-Type: text/x-patch; name="0001-Fix-call-arguments-mismatch-in-gcc.c-torture-compile-pr82052.c.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename*0="0001-Fix-call-arguments-mismatch-in-gcc.c-torture-compile-pr"; filename*1="82052.c.patch" Content-length: 923 Fix call arguments mismatch in gcc.c-torture/compile/pr82052.c 2017-09-04 Tom de Vries PR tree-optimization/82052 * gcc.c-torture/compile/pr82052.c (fn2): Add parameters corresponding to call in fn11. --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.c-torture/compile/pr82052.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.c-torture/compile/pr82052.c b/gcc/testsuite/gcc.c-torture/compile/pr82052.c index 4441985..3763161 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr82052.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr82052.c @@ -20,7 +20,7 @@ uint16_t t35[][7][2]; static uint8_t t41; char z[][8][3]; char fn1(char p1, int p2) { return p1 < 0 ?: p1 >> p2; } -short fn2() {} +short fn2(int a, uint16_t b) {} void fn3(uint8_t p1) { d = d >> 8 ^ c[(d ^ p1) & 5]; } void fn4(uint32_t p1, int p2) { int e; --------------554698CA918A5B85A77D70A0--