From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by sourceware.org (Postfix) with ESMTPS id B40593857BB2 for ; Fri, 15 Jul 2022 11:47:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B40593857BB2 Received: by mail-pl1-x635.google.com with SMTP id r1so3021221plo.10 for ; Fri, 15 Jul 2022 04:47:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=n6amW1XoeHked2PSasx/YDwrhf6NggFqjwnWbfDbA9w=; b=g0OoglS1qz6FcqX+xbAXEipSIkkBobNdlBXvGi+PBnV5q0QN0L3LjM1FRaRcTB4EXS kStq2JAjrnDj2TuikLY42D9M2EyyMnYTyRAeunlt38ikA84J8CHsjYR3XBCT4homIrpT ygW7Tgd3xqxkHo+rsIf9DsWH1utqW9URKVag3C+ICLDz38t8ZROK8kr5S7QLpl5s5FE/ 3Zrj90yNxYAldpsoYElGaTzEYd8AoG/uLhUWY9lfIkx0fysx4sJ2UkTV+et2NhVh5zW4 5QsBKuiZJO5gibdD+FrAPjBWNjVEG1a5qpJ0Si/U50ZgX7w9bmhVHU2Rkn0GC5AeS/RQ rRQg== X-Gm-Message-State: AJIora/PkTSN0ICbshdvuB69UY8s9F1fKX2fgBUK48uhFe6Q+3nc3sOd nD+joZGEr5CpiO/Ck2qt07i9QOJBWGLfzIDmqbjFdxqWK71W/ziwAc2lAmwwxNVM9ahEHNhBruQ PnATZ9ffq1EjNAw+2Fe4wNz1WRMkF0p1gh3IDUc9HR2+/AqLvZ4OEBT/ejnWvrV/oBLyKtaUZdr i0XVqZ4yNTxSCAAg4P X-Google-Smtp-Source: AGRyM1tXOLMwidpHZOzs9IVCvNyRY1Pst9zY1hQEfTt+U3FBP9jnWGJPcIRBpVuW+/KPHlyX+i/ePQ== X-Received: by 2002:a17:903:18a:b0:16c:4f75:7297 with SMTP id z10-20020a170903018a00b0016c4f757297mr13144359plg.133.1657885639373; Fri, 15 Jul 2022 04:47:19 -0700 (PDT) Received: from [192.168.43.110] (softbank219059084034.bbtec.net. [219.59.84.34]) by smtp.gmail.com with ESMTPSA id q10-20020aa7842a000000b0052516db7123sm3601889pfn.35.2022.07.15.04.47.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Jul 2022 04:47:19 -0700 (PDT) Message-ID: Date: Fri, 15 Jul 2022 13:47:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] Add condition coverage profiling Content-Language: en-US To: gcc-patches@gcc.gnu.org References: <20220715113938.19068-1-jorgen.kvalsvik@woven-planet.global> From: =?UTF-8?Q?J=c3=b8rgen_Kvalsvik?= In-Reply-To: <20220715113938.19068-1-jorgen.kvalsvik@woven-planet.global> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2022 11:47:23 -0000 On 15/07/2022 13:39, Jørgen Kvalsvik wrote: > This patch adds support in gcc+gcov for modified condition/decision > coverage (MC/DC) with the -fprofile-conditions flag. Hello, I have updated this patch based on the feedback from Sebastian and Martin. 1. The description of the masking_vector function has been updated. 2. New vocabulary for the output - decisions for, well, the decisions. It also writes at most one line per condition: decisions covered 1/4 condition 0 not covered (true false) condition 1 not covered (true) 3. I applied Sebastian's patch and so it should work free standing. Thanks, Jørgen