Message ID | 20231004123921.634024-5-j@lambda.is |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (4096-bit key; secure) header.d=kolabnow.com header.i=@kolabnow.com header.a=rsa-sha256 header.s=dkim20160331 header.b=uS4Zk0Bz; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4S0vST6XMhz1yng for <incoming@patchwork.ozlabs.org>; Wed, 4 Oct 2023 23:41:13 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A6273385DC10 for <incoming@patchwork.ozlabs.org>; Wed, 4 Oct 2023 12:41:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx.kolabnow.com (mx.kolabnow.com [212.103.80.155]) by sourceware.org (Postfix) with ESMTPS id 0AD313856968 for <gcc-patches@gcc.gnu.org>; Wed, 4 Oct 2023 12:40:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0AD313856968 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=lambda.is Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=lambda.is Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 3CBF720AB2D8; Wed, 4 Oct 2023 14:40:30 +0200 (CEST) Authentication-Results: ext-mx-out011.mykolab.com (amavis); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :references:in-reply-to:message-id:date:date:subject:subject :from:from:received:received:received; s=dkim20160331; t= 1696423229; x=1698237630; bh=YWnwb3Vjw28eK8tJ8xvsLArMTFH/bBnYicW hVnj1cGc=; b=uS4Zk0Bzj5lKhvFFrHptXjpizA+sau1F1b9K8OayZwi4aky/YH1 m+Lx/s52qM3FelxEOWQVgdE5Hd2VDUxtrueComd0RfX8+SpdfNcmRLqODmdtHoI0 /wPNfPLgvKvdDoEo44tDgA14qpLQH4vCDhmr0OZCsBKxHVwndN/k7grqq8ib6hpO wcnf2DdtS0pJiovdS0PtUQOgysQxw7VoRzvzMzzpnR1qBLaubujmZkz6C6D0t+a0 4UFsAT2t3vNV18HXZSTnyH7L8DZbEXl9Dtd0II46itB0pNfhGo23Oa8JjbXXB98s a96+pkL9y/wZaykZgJoEog+zZDC9bXjcmXgmiiZYv9Zj2HMXp/2Vw/qhgNmDsZ0r LKPf13Go3IHPTC5WlppN1njmheFoXYVw9bdARooxv/H0qsJT0FhJbMn7Ud/jgpls iRuevKQwIkVfj+kmQSmv1chDswXzaDc8Zxp9SQX4DBMUlhg+Z14hQ0e9XJVm5HsG QQ7Nx66geHA0t4SE0LSC0/EVev8zl0/ltzIvw8JmgNNb24o5mHsWOYnnCNFdobvZ oK94QR5gwq1d4ExySyrBtZC+zKJspZ+0hTmYC3X0f/cniuNXLoM2Jyrxsti80zOZ BH+A54K7A3/FC+cgK6uaZe8qDwEH5G1hf0ozBdTOZbMw8TX1t3sw9Qrs= X-Virus-Scanned: amavis at mykolab.com X-Spam-Score: -0.999 X-Spam-Level: X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, SPAM_BODY, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id 79Qme1rBDOqT; Wed, 4 Oct 2023 14:40:29 +0200 (CEST) Received: from int-mx009.mykolab.com (unknown [10.9.13.9]) by mx.kolabnow.com (Postfix) with ESMTPS id A457620B3679; Wed, 4 Oct 2023 14:40:29 +0200 (CEST) Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx009.mykolab.com (Postfix) with ESMTPS id 8A7CD20D6AE9; Wed, 4 Oct 2023 14:40:29 +0200 (CEST) From: =?utf-8?q?J=C3=B8rgen_Kvalsvik?= <j@lambda.is> To: gcc-patches@gcc.gnu.org Cc: mliska@suse.cz, jh@suse.cz, =?utf-8?q?J=C3=B8rgen_Kvalsvik?= <jorgen.kvalsvik@woven.toyota> Subject: [PATCH 04/22] Describe, remove ATTRIBUTE_UNUSED from tag_conditions Date: Wed, 4 Oct 2023 21:39:04 +0900 Message-Id: <20231004123921.634024-5-j@lambda.is> In-Reply-To: <20231004123921.634024-1-j@lambda.is> References: <20231004123921.634024-1-j@lambda.is> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[01/22] Add condition coverage profiling
|
expand
|
diff --git a/gcc/gcov-dump.cc b/gcc/gcov-dump.cc index 65fa2d7b44b..d85fa98ddd5 100644 --- a/gcc/gcov-dump.cc +++ b/gcc/gcov-dump.cc @@ -394,14 +394,14 @@ tag_arcs (const char *filename ATTRIBUTE_UNUSED, } } +/* Print number of conditions (not outcomes, i.e. if (x && y) is 2, not 4) */ static void -tag_conditions (const char *filename ATTRIBUTE_UNUSED, - unsigned tag ATTRIBUTE_UNUSED, int length ATTRIBUTE_UNUSED, +tag_conditions (const char *filename, unsigned /* tag */, int length, unsigned depth) { unsigned n_conditions = GCOV_TAG_CONDS_NUM (length); - printf (" %u conditionals", n_conditions); + printf (" %u conditions", n_conditions); if (flag_dump_contents) { for (unsigned ix = 0; ix != n_conditions; ix++)
From: Jørgen Kvalsvik <jorgen.kvalsvik@woven.toyota> --- gcc/gcov-dump.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)