Message ID | 20240620085321.2412421-11-poulhies@adacore.com |
---|---|
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 (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=Li4LuRZT; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4W4ZNS74ssz20KL for <incoming@patchwork.ozlabs.org>; Thu, 20 Jun 2024 19:06:16 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B2D90389000C for <incoming@patchwork.ozlabs.org>; Thu, 20 Jun 2024 09:06:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 051243889823 for <gcc-patches@gcc.gnu.org>; Thu, 20 Jun 2024 08:53:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 051243889823 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 051243889823 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::432 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718873627; cv=none; b=vShNQSZPmp5b1gryoY9Oj9kg3EN8+dgmk7IzyP+BbuWPUuct9yu9zENsQt9gT1pHWewBKcimRIssAeLGT5MIpeeLN4LfAPmEtW9tq3yJwrh9lwo+PwfuDc0BAU8tSYReGkkmN8scr9MGiCoTLHG7fDPdNTNQVRrbFDdTM3jTwsI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718873627; c=relaxed/simple; bh=9bq8UarBahS2nqZ5L0Abj513tu5eaFoj/7DDo6eLB3g=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=VnRzMsx+kg7uHLV1JMZVw2KB5ebBdU5MEroWF63pdUVU1+MQUhoVAMNaZTU5T8REuF71eVLZ+K/Lm2FNvJtfWZodigtGGZnwv7OfsHRAre+NxSLhIOXd7WE4DsNYuDyX0/1gCd0AgrpuJh39/uuySNTbC3Ih02NgyqQ8sW5nOA0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-3608e6d14b6so507150f8f.0 for <gcc-patches@gcc.gnu.org>; Thu, 20 Jun 2024 01:53:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1718873620; x=1719478420; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Su8LjbFx14A+OVvjVPJ3TuXxLT3QzPhifBzZhtcaO8k=; b=Li4LuRZTy9jAPM8lQpypZyWQCezfL2WdVe3JCloCt3MKXgljzhn5VM74JDKbuzp+I8 ChoTXOkyVyGnWctURhg845hBDranogy1iZrdusPWQA9HinpuUUawWhk34BUhrcWqjUek x2htVLhRf0eVR82jM/8zcPd3EuYiEb+AEAP7/Rv8nDbcAJoT7IPC1C2isTPgryZUhhvz LWGEdAEIqgTDZRDoXJ+C6DC3cxrAeq/JKDTfM4yR+Aa/IxVXoV8DiKjq6qFuAcU5m9ZR EfP99ihvYnW4hlE8OiH7xHpOaby4tbmOoeFfMm8acYpGyHHv8zu4r2sZbNwFkKlZhOlM XQqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718873620; x=1719478420; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Su8LjbFx14A+OVvjVPJ3TuXxLT3QzPhifBzZhtcaO8k=; b=qGoArtFLT4P1V6v+chR2adCIuX867hf/ob+y+T5x6IURVJW1Li2dwT0CUZv7ncP/T3 nbt9qTB3bXEwwuY6YSEVDYkIzH9F0DeZb58pIVYbTFAWnZDDRhMwkh1CntUWYyG2fzVK AfofoaIuY90c98RdFu0fO4RRE+7cNHJcO/cFC93isbGOEcNcr9Lt8dBXMUI/o6vB01Nb WEsrHbKnkfeI2rwVf1u+8sBaHqbNb3Yqrsp3eu3eqGPdB0E3wCC2QoJFLIZBMmAY8kSZ 98Tzbm8dTKwT2LqypTvsz093MwEcBkt+1KpPJAJNJUJbl5nNRT4Kxshy/0h1mpubqthi Je8w== X-Gm-Message-State: AOJu0YwQPnHcnWUws1m6ov2Y485uvFs2tRRj8W3ttuYjcoLfWL1qd3PZ PkEn7wxj/XUp83Xf1WoaB6OKmBtBMPqKmLAXSZPOjXDGptbW+4M/e5r9PF556FYTKq8+8S3dffg = X-Google-Smtp-Source: AGHT+IGO5lBmhdLFJrHtlEolmRYmytzVqe9NolsCVpGUOn2N90TcvVdi9qLOTnXWVPT4b8WdhGCCVg== X-Received: by 2002:a05:6000:1108:b0:360:9c4f:1fe with SMTP id ffacd0b85a97d-363193c6376mr3570691f8f.43.1718873619771; Thu, 20 Jun 2024 01:53:39 -0700 (PDT) Received: from poulhies-Precision-5550.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-363c795febfsm3305522f8f.104.2024.06.20.01.53.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 01:53:39 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Ronan Desplanques <desplanques@adacore.com> Subject: [COMMITTED 11/30] ada: Add Dump_Buffers hooks for code coverage Date: Thu, 20 Jun 2024 10:53:01 +0200 Message-ID: <20240620085321.2412421-11-poulhies@adacore.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240620085321.2412421-1-poulhies@adacore.com> References: <20240620085321.2412421-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.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 |
[COMMITTED,01/30] ada: Fix list of attributes defined by Ada 2022
|
expand
|
diff --git a/gcc/ada/gnat1drv.adb b/gcc/ada/gnat1drv.adb index 754dab82862..9743dfd4c4c 100644 --- a/gcc/ada/gnat1drv.adb +++ b/gcc/ada/gnat1drv.adb @@ -1526,6 +1526,8 @@ begin Check_Rep_Info; end if; + pragma Annotate (Xcov, Dump_Buffers); + return; end if; @@ -1679,6 +1681,8 @@ begin Atree.Print_Statistics; end if; + pragma Annotate (Xcov, Dump_Buffers); + -- The outer exception handler handles an unrecoverable error exception @@ -1693,6 +1697,9 @@ exception Set_Standard_Output; Source_Dump; Tree_Dump; + + pragma Annotate (Xcov, Dump_Buffers); + Exit_Program (E_Errors); end Gnat1drv;
From: Ronan Desplanques <desplanques@adacore.com> The purpose of this patch is to make it possible to set up code coverage for the GNAT front end in gnat1 using GNATcoverage. It is not obvious how to have GNATcoverage instrument gnat1's main function, and since the front end has a clear entry point (Gnat1drv), we add manual instrumentation annotations there. gcc/ada/ * gnat1drv.adb (Gnat1drv): Add coverage instrumentation annotations. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/gnat1drv.adb | 7 +++++++ 1 file changed, 7 insertions(+)