From patchwork Wed Jan 15 02:06:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1223150 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-517411-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=eGHAX/aD; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=bqLLROu7; 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 47y9gH5Rd8z9s1x for ; Wed, 15 Jan 2020 13:06:50 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=cEH4MNirpAEQ06wD h6Y0ZpFWDtMuVierRe9YkKlURAQuFkPfnEx/x5qA3sQT8BunuV9eU3eJNbX1L5Qh UWIbs+gLTM9tv+NLuOgKWcEehgnXdqNIbyyv3ML5RopwubCIvoDaTln536t23GkF omaSBVjShclG0D5FUbS58eYlkYk= 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:from :to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=TBaengrU4T9Ccufuoli3kc TEYkg=; b=eGHAX/aD1ouN9MqPlTnKvzBBMB9sfXmAbiS1k2/D9qL5haCUxf8fPn pwWOMW23zBERo+6suwjf+t7iA7CRgRxLGPB2xdGQJM4zTrmBoHTRrOtuVCk439VK nzpe8AbxNFs3WMSDtE1f7OVLUTcWdMHOOXUEUYiBldkSGeXZKPnc8= Received: (qmail 3998 invoked by alias); 15 Jan 2020 02:06:41 -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 3990 invoked by uid 89); 15 Jan 2020 02:06:41 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=bars X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-2.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (207.211.31.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 15 Jan 2020 02:06:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579053998; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ri/TvQFHVZ1hD+m4hLArifHcp8H4datAK3xk94lCtmY=; b=bqLLROu7KHS6RUgoJtacWXNE26vIymcHpgASs45l39I9QAAyyrFy3o023N7HQn3aNkBKeU DUHZiAcQujf1hF0qIK7fGwKrAIwzLDHT5QtHNlSTOPR3UDMFupngmRHfEf3kZ5h+ah034I 3hFAM83TSB1D3pDjNcqcVXnY9msmbJQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-357-Q9KxCbwgPGegSboJf1btEA-1; Tue, 14 Jan 2020 21:06:36 -0500 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id DC8399125B for ; Wed, 15 Jan 2020 02:06:35 +0000 (UTC) Received: from t470.redhat.com (ovpn-117-41.phx2.redhat.com [10.3.117.41]) by smtp.corp.redhat.com (Postfix) with ESMTP id 76FF8811E0; Wed, 15 Jan 2020 02:06:35 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [committed] invoke.texi: update -fdiagnostics-show-cwe for analyzer Date: Tue, 14 Jan 2020 21:06:32 -0500 Message-Id: <20200115020632.9530-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-IsSubscribed: yes Committed to master under the "obvious" rule (ab7c7b46c35ed1be68d4c020a2f20ee96f68b64b) gcc/ChangeLog: * doc/invoke.texi (-fdiagnostics-show-cwe): Add note that some of the analyzer options provide CWE identifiers. --- gcc/doc/invoke.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 180cde35424..d8b94d837a9 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -4076,7 +4076,8 @@ the vertical bars and the ``char *'' and ``long int'' text). @opindex fdiagnostics-show-cwe Diagnostic messages can optionally have an associated @url{https://cwe.mitre.org/index.html, CWE} identifier. -GCC itself does not do this for any of its diagnostics, but plugins may do so. +GCC itself only provides such metadata for some of the @option{-fanalyzer} +diagnostics. GCC plugins may also provide diagnostics with such metadata. By default, if this information is present, it will be printed with the diagnostic. This option suppresses the printing of this metadata.