From patchwork Sat May 6 07:49:34 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: 759269 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wKgsW6DHrz9s8P for ; Sat, 6 May 2017 17:50:07 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="f/WKXSpu"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=JGHgI8WLwkj92fQ680TL+uRRxVb4f4RdJbUe1IH15p/4yHczhW DtjmUdn/+m/4fWTTOOHhc2rqUwz9QsC1z3wsURO4U22kBlzP61/OHKghSR5zbHXa WszejEqAHInmXQGO0nsLZPqeWdFHf/8NEG8ZFaMnhd6fgGZWSeSjJzPIs= 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 :from:subject:message-id:date:mime-version:content-type; s= default; bh=F6Hpyhmc93SKC8nRpVLODMMbn7A=; b=f/WKXSpuk3T6Sh/WIOCc g2QBj/xjFunutqM5ykojELT/T1HJm732CWaturPZ00g3KEyGIMEgtPmiXT1lx6tc sTh8h1Ix7shcPaA1MbVQjqjPPZ+W3LYmzd54iQosKmxp9ccBde6gooEuQreEjbpk QJ23EoaWKaSEVvfRrL1fpeI= Received: (qmail 10413 invoked by alias); 6 May 2017 07:49:54 -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 10369 invoked by uid 89); 6 May 2017 07:49:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.5 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=1015, Hx-languages-length:2283 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; Sat, 06 May 2017 07:49:49 +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 1d6uTN-0000XI-5O from Tom_deVries@mentor.com for gcc-patches@gcc.gnu.org; Sat, 06 May 2017 00:49:49 -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.1210.3; Sat, 6 May 2017 08:49:45 +0100 To: GCC Patches From: Tom de Vries Subject: [testsuite, committed] Replace absolute line numbers in gcc.target/spu Message-ID: <148c4bc0-26ed-328e-a548-a4189a42bc07@mentor.com> Date: Sat, 6 May 2017 09:49:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.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 patch replaces absolute line numbers in gcc.target/spu. Tested on spu. Committed as obvious. Thanks, - Tom Replace absolute line numbers in gcc.target/spu 2017-05-05 Tom de Vries PR testsuite/80557 * gcc.target/spu/Wmain.c: Replace absolute line numbers. * gcc.target/spu/intrinsics-1.c: Same. --- gcc/testsuite/gcc.target/spu/Wmain.c | 2 +- gcc/testsuite/gcc.target/spu/intrinsics-1.c | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.target/spu/Wmain.c b/gcc/testsuite/gcc.target/spu/Wmain.c index b6bfe41..d80e182 100644 --- a/gcc/testsuite/gcc.target/spu/Wmain.c +++ b/gcc/testsuite/gcc.target/spu/Wmain.c @@ -2,6 +2,6 @@ /* { dg-options "-Wmain -mstdmain" } */ int main (void *wrong)/* { dg-warning "first argument of 'main' should be 'int'" } */ + /* { dg-warning "'main' takes only zero or two arguments" "" { target *-*-* } .-1 } */ { - /* { dg-warning "'main' takes only zero or two arguments" "" { target *-*-* } 4 } */ } diff --git a/gcc/testsuite/gcc.target/spu/intrinsics-1.c b/gcc/testsuite/gcc.target/spu/intrinsics-1.c index 2720889..b8974f6 100644 --- a/gcc/testsuite/gcc.target/spu/intrinsics-1.c +++ b/gcc/testsuite/gcc.target/spu/intrinsics-1.c @@ -10,10 +10,15 @@ void f(void) int *a1; _Complex double b; gt = spu_cmpgt(a, N); /* { dg-error "parameter list" } */ + gt = spu_cmpgt(a, a1); /* { dg-error "integer from pointer without a cast" } */ + /* { dg-message "note: expected 'int'" "" { target *-*-* } .-1 } */ + gt = spu_cmpgt(a, b); /* { dg-error "parameter list" } */ + gt = spu_cmpgt(a, a); - a = spu_cmpgt(a, a); /* { dg-message "note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts" } */ -/* { dg-message "note: expected 'int'" "" { target *-*-* } 13 } */ -/* { dg-error "incompatible types when assigning" "" { target *-*-* } 16 } */ + + a = spu_cmpgt(a, a); + /* { dg-message "note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts" "" { target *-*-* } .-1 } */ + /* { dg-error "incompatible types when assigning" "" { target *-*-* } .-2 } */ }