From patchwork Wed May 3 07:37:53 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: 757878 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 3wHqlD4Yrgz9s7k for ; Wed, 3 May 2017 17:38:16 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="b6qSPhgA"; 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=Ys80N8FVhxz6Rj3p5N3eJjX+gewpXXlZwhDV0vJYSiDQzQOsV3 1emBh9gnbja7o/7dPtjGnGUiqafLbh9ZVtKeBih+ytetH6BkhHTPM7c3s1psXFv5 G6MYmALlHlCAyYIZlumERCFzDX7Pm+VMvAY3MtaCCKvWxlJxv1cqo1HJc= 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=BN21dFgBUEy2HFRPXLl5yDQJpio=; b=b6qSPhgAVgxnd7Uu/hYU AYFWbHgoH9afn5bMYEiGaJNwLni6FlLQkXk2EpDzWUp3kOKMDNR+IsC8Dz6HY0bA 9zAjQ+VVcDXf5p/XZ0yI5lAuOS9RgfQhdbmJF0n7oT0NkY/gmRp82TzfS7YcBQlV uWhoh/isum09pydpl4Ig9rw= Received: (qmail 27425 invoked by alias); 3 May 2017 07:38:05 -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 27377 invoked by uid 89); 3 May 2017 07:38:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.4 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= 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, 03 May 2017 07:38:02 +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 1d5orI-0003wP-VN from Tom_deVries@mentor.com for gcc-patches@gcc.gnu.org; Wed, 03 May 2017 00:38:01 -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; Wed, 3 May 2017 08:37:57 +0100 To: GCC Patches From: Tom de Vries Subject: [testsuite, committed] Add quotes to numerical comment arg of dg directive Message-ID: <87f33d84-bf83-7663-f923-81b0c64077fe@mentor.com> Date: Wed, 3 May 2017 09:37:53 +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 adds quotes to the comment argument of a dg-message directive when the comment is a plain number, to avoid confusion with line numbers. Committed as obvious. Thanks, - Tom Add quotes to numerical comment arg of dg directive 2017-05-01 Tom de Vries * c-c++-common/goacc/data-default-1.c: Add quotes to numerical comment arg of dg directive. * c-c++-common/goacc/routine-3.c: Same. * c-c++-common/goacc/routine-4.c: Same. --- gcc/testsuite/c-c++-common/goacc/data-default-1.c | 4 ++-- gcc/testsuite/c-c++-common/goacc/routine-3.c | 4 ++-- gcc/testsuite/c-c++-common/goacc/routine-4.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/c-c++-common/goacc/data-default-1.c b/gcc/testsuite/c-c++-common/goacc/data-default-1.c index 631032e..ec53cbe 100644 --- a/gcc/testsuite/c-c++-common/goacc/data-default-1.c +++ b/gcc/testsuite/c-c++-common/goacc/data-default-1.c @@ -6,13 +6,13 @@ int main () int n = 2; int ary[2]; -#pragma acc parallel default (none) /* { dg-message "'parallel' construct" 2 } */ +#pragma acc parallel default (none) /* { dg-message "'parallel' construct" "2" } */ { ary[0] /* { dg-error "not specified in enclosing" } */ = n; /* { dg-error "not specified in enclosing" } */ } -#pragma acc kernels default (none) /* { dg-message "'kernels' construct" 2 } */ +#pragma acc kernels default (none) /* { dg-message "'kernels' construct" "2" } */ { ary[0] /* { dg-error "not specified in enclosing" } */ = n; /* { dg-error "not specified in enclosing" } */ diff --git a/gcc/testsuite/c-c++-common/goacc/routine-3.c b/gcc/testsuite/c-c++-common/goacc/routine-3.c index b322d26..eaea470 100644 --- a/gcc/testsuite/c-c++-common/goacc/routine-3.c +++ b/gcc/testsuite/c-c++-common/goacc/routine-3.c @@ -2,7 +2,7 @@ #pragma acc routine gang int -gang () /* { dg-message "declared here" 3 } */ +gang () /* { dg-message "declared here" "3" } */ { #pragma acc loop gang worker vector for (int i = 0; i < 10; i++) @@ -14,7 +14,7 @@ gang () /* { dg-message "declared here" 3 } */ #pragma acc routine worker int -worker () /* { dg-message "declared here" 2 } */ +worker () /* { dg-message "declared here" "2" } */ { #pragma acc loop worker vector for (int i = 0; i < 10; i++) diff --git a/gcc/testsuite/c-c++-common/goacc/routine-4.c b/gcc/testsuite/c-c++-common/goacc/routine-4.c index 3e5fc4f..efc4a0b 100644 --- a/gcc/testsuite/c-c++-common/goacc/routine-4.c +++ b/gcc/testsuite/c-c++-common/goacc/routine-4.c @@ -35,7 +35,7 @@ void seq (void) red ++; } -void vector (void) /* { dg-message "declared here" 1 } */ +void vector (void) /* { dg-message "declared here" "1" } */ { gang (); /* { dg-error "routine call uses" } */ worker (); /* { dg-error "routine call uses" } */ @@ -61,7 +61,7 @@ void vector (void) /* { dg-message "declared here" 1 } */ red ++; } -void worker (void) /* { dg-message "declared here" 2 } */ +void worker (void) /* { dg-message "declared here" "2" } */ { gang (); /* { dg-error "routine call uses" } */ worker (); @@ -87,7 +87,7 @@ void worker (void) /* { dg-message "declared here" 2 } */ red ++; } -void gang (void) /* { dg-message "declared here" 3 } */ +void gang (void) /* { dg-message "declared here" "3" } */ { gang (); worker ();