From patchwork Wed Jun 6 17:32:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jozef Lawrynowicz X-Patchwork-Id: 925983 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-479203-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mittosystems.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="piYD055R"; 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 411G346pWkz9ry1 for ; Thu, 7 Jun 2018 03:32:48 +1000 (AEST) 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=JdTLXbYCD8X8K1+wxxHgtiP8pceBQaHFJGRAix48EXfuy6FJWl lhxBi/QrbqgCg/023o/bT85ZCyZY+MWn7w5bKKpiMu4ZaQD/1iZnoUf05eTdGtDD Fdc50ON/5VbUWLRotC9a3EAntMjVF35s5glpGrc4YI6hquozUF7Tr0Vag= 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=UumOV3WwsVESPr2VJt65Xezs6cE=; b=piYD055RdHPVJUN8SAnJ QlWNdZf0/pFZIJBoIGCUWqZA3L3xRRqS1JKMzuMVKEiDV0kjuGohbXiv0RbpDX2X UQtALnK/ZAjrCtNtbpKQhK0y+mdJMptHrbmJf74iGU2EPTn03oYLAiWBWSwxJllU DmbzqKZfu7vPjqsCu27NPsQ= Received: (qmail 2626 invoked by alias); 6 Jun 2018 17:32:42 -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 2617 invoked by uid 89); 6 Jun 2018 17:32:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wr0-f170.google.com Received: from mail-wr0-f170.google.com (HELO mail-wr0-f170.google.com) (209.85.128.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 06 Jun 2018 17:32:39 +0000 Received: by mail-wr0-f170.google.com with SMTP id l10-v6so7173774wrn.2 for ; Wed, 06 Jun 2018 10:32:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=3z/SSbCyNPSHMQJUWoU6uInq0OZKbTDeVU9HvR/pON0=; b=jFPebXrygSFPqO5nbb3H+7GxSbjuaAusMhQniif7pd8dvl6wOrcaP5RL63KDOwjkXG tdIvFC6JKPvH8shzxcW9gezQS+sppfpIspN52mOnbn8T+xv1q7+BT+CnCtW3IKsUiTjM WNRUrWxP499JJqH8HmV645hsVYDnf01a3kL/GExVIFSxNKYx+aX6e4MjtR2KSPdSViPx W3tQxpNJZlLD54dIlz9CTW2LH1Urs3GmpHkb68TtPo9Z2kIo+isRiZxijbxV/JoqxDl4 peqho91z04a79OBUVYGbY+i8rk5isxlDpSMpMACx/SmkxK83Oz+zQxy9qqvEhlZwcrAV DKkA== X-Gm-Message-State: APt69E0MRXPjKgM5fQ2hZ2OjgBY3re5+6/Iaxnu5jDTBj0nxaCuON9lu j7TmEv2+JU37uyOPipucOjGTPXjlvs8= X-Google-Smtp-Source: ADUXVKIM1rYQ+bQVbjkNR/nBiap5I4HElQurUlVUWJTIb8HrCAS3S5TFn6+vPPTtPCsCyq9eS9s76g== X-Received: by 2002:adf:acae:: with SMTP id o43-v6mr2851655wrc.132.1528306357138; Wed, 06 Jun 2018 10:32:37 -0700 (PDT) Received: from ?IPv6:2a00:23c5:e05:e600:21b6:90d3:999:e739? ([2a00:23c5:e05:e600:21b6:90d3:999:e739]) by smtp.gmail.com with ESMTPSA id p189-v6sm5287875wmg.18.2018.06.06.10.32.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jun 2018 10:32:35 -0700 (PDT) To: gcc-patches@gcc.gnu.org From: Jozef Lawrynowicz Subject: [PATCH] Document usage of line number 0 in dg-{warning, error, message, bogus} directives Message-ID: <1bee29b4-4641-dd50-3780-d4c4746ef0d9@mittosystems.com> Date: Wed, 6 Jun 2018 18:32:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 X-IsSubscribed: yes For the dg-{warning,error,message,bogus} directives, a value of 0 for the line argument can be passed to specify that the message is not associated with any line. This patch documents that in the Directives section of the documentation. Ok for trunk? From d08160770abef420b6699f6bd2c30a055bd10350 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Wed, 6 Jun 2018 18:20:56 +0100 Subject: [PATCH] Document usage of line number 0 in dg-{warning,error,message,bogus} directives 2018-06-06 Jozef Lawrynowicz * gcc/doc/sourcebuild.texi: Document usage of line number 0 in verify compiler messages directives. --- gcc/doc/sourcebuild.texi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 09c0053..d52183d 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -1177,6 +1177,8 @@ conditions (which are the same as for @code{dg-skip-if}) are met. @end table @subsubsection Verify compiler messages +Where @var{line} is an accepted argument for these commands, a value of @samp{0} +can be used if there is no line associated with the message. @table @code @item @{ dg-error @var{regexp} [@var{comment} [@{ target/xfail @var{selector} @} [@var{line}] ]] @} -- 2.7.4