From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65287 invoked by alias); 22 Nov 2017 21:14:29 -0000 Mailing-List: contact jit-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: jit-owner@gcc.gnu.org Received: (qmail 65267 invoked by uid 89); 22 Nov 2017 21:14:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.7 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KB_WAM_FROM_NAME_SINGLEWORD,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:1343 X-Spam-Status: No, score=-26.7 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KB_WAM_FROM_NAME_SINGLEWORD,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-Spam-User: qpsmtpd, 2 recipients 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; Wed, 22 Nov 2017 21:14:28 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0F89F820FB; Wed, 22 Nov 2017 21:14:27 +0000 (UTC) Received: from c64.redhat.com (ovpn-112-13.phx2.redhat.com [10.3.112.13]) by smtp.corp.redhat.com (Postfix) with ESMTP id CEA53600C9; Wed, 22 Nov 2017 21:14:25 +0000 (UTC) From: David Malcolm To: jit@gcc.gnu.org, gcc-patches@gcc.gnu.org Cc: Martin Sebor , David Malcolm Subject: [committed] jit: update test suite for change to -Warray-bounds Date: Sun, 01 Jan 2017 00:00:00 -0000 Message-Id: <1511385398-37122-1-git-send-email-dmalcolm@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 22 Nov 2017 21:14:27 +0000 (UTC) X-IsSubscribed: yes X-SW-Source: 2017-q4/txt/msg00004.txt.bz2 jit.dg/test-error-array-bounds.c is a test of how libgccjit handles errors coming from the middle-end, using -Warray-bounds as an example. It started failing as of r254830 (aka 987b3316c4e7c908e3c7d2151c20971f9707ad66), due to that commit changing the wording of the message. This commit fixes the jit testcase by updating it to use the new wording. Committed to trunk as r255082. gcc/testsuite/ChangeLog: PR tree-optimization/82588 PR tree-optimization/82583 * jit.dg/test-error-array-bounds.c (verify_code): Update expected error message from -Warray-bounds. --- gcc/testsuite/jit.dg/test-error-array-bounds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/jit.dg/test-error-array-bounds.c b/gcc/testsuite/jit.dg/test-error-array-bounds.c index 732ec87..889c517 100644 --- a/gcc/testsuite/jit.dg/test-error-array-bounds.c +++ b/gcc/testsuite/jit.dg/test-error-array-bounds.c @@ -68,5 +68,6 @@ verify_code (gcc_jit_context *ctxt, gcc_jit_result *result) /* ...and that the message was captured by the API. */ CHECK_STRING_VALUE (gcc_jit_context_get_first_error (ctxt), - "array subscript is above array bounds [-Warray-bounds]"); + "array subscript 10 is above array bounds of" + " 'unsigned char[10]' [-Warray-bounds]"); } -- 1.8.5.3