From patchwork Thu Aug 29 13:07:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 1978445 Return-Path: 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=QAY+ZmIw; 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 4Wvhbw5hx5z1yZ9 for ; Thu, 29 Aug 2024 23:15:40 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 80B3E3861029 for ; Thu, 29 Aug 2024 13:15:38 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 826143861029 for ; Thu, 29 Aug 2024 13:08:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 826143861029 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 826143861029 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::330 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724936899; cv=none; b=fdRq01ne39tSB+TymOiNY9pbA+WuU0gN3EPVVza3wNU+yh6J7usSEyzXLuxPmBnh6t2PEtg/UTt7CpXr7NwFmzxaB4U9s47XYkMvaz0vgcP51i6oW89kqhEcgSaa0PWvIbcEhYd7vTZJdjCgASTlEKx7PXiWDa2xbyBDasONZpw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724936899; c=relaxed/simple; bh=WwPnVfGGs8wFcCT+37C0RzGbRNqWGdOEM3gnuZpTigI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=gYMCejuk5EzE0Z+hPROiM32/tFXkp0I6uQi/nu6a+A+45rwHZdUamXp5OCEqwRQBGC8Doht/CLZRL3HQUyZLOLaihJdl9wsdwGTcRa5K1fER7Wr7wxROnzFaKr/iMr/mFY5/iYKIl7r5tW+ZQCqi3DsTyDQ4B0ZwsMe/b038afU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-42bb8cf8abeso2404955e9.2 for ; Thu, 29 Aug 2024 06:08:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1724936896; x=1725541696; 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=hVeK1/nh9f/QytC7OHq+BBJzHKhDo0igHt50ygc+wAc=; b=QAY+ZmIwYAhhtilA8QJu005ns+mgmfR5gCTPh5IpEIitNX1GLqIoHB3itOCQpvdX3e crQCRflT2umkCdaPkX8/H3ulJZZqor4KXGzMqWI15PoK6ml0n1skYgcu3U1BEpLRyfC3 BXUagXTy8UK3IFT9kGn48u2dawS1DcWje06R2PfnKTSE2IyQDWklMRIlFnOHKxbHCwFB ECRtorYoOzM7WRbEh+B3y9wlccmcmhQcvqTDA4OaOsL2/tL8ECI+RXE/eCE7FW170NjN JvnaFKcumq+fuSrj72UNsA9bXtavJo/MhSG5cv6XGVthSK3SLsw45Xe+RXIdnUwl5udG zKmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724936896; x=1725541696; 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=hVeK1/nh9f/QytC7OHq+BBJzHKhDo0igHt50ygc+wAc=; b=H1YjAccLtrNnZ/p4jKFMRQhdXZ/qQo9KMSv0u65gO15eiFdBdz5WqUkcNMEz5uooWC 7/Un7qk6GfLY+MEKPL8shVgqr91rzFmtqePGo18CjenfYiV4zGedn/R/Km0Pph7PPN/m 0xLzJSnQXTP49NEChz88T2nLWWSUIIxbj2f0WItDx+skzR8M4KKr/5BSHtKZkRNdjj28 so+ZK0/Q8SkcE921qVq7nlWo0Z2v+4DIht6VgHPX4u8moYzTfVEWcAqlHemfSzzPl02P kjwj1C9+dXByRG8AJdrDK3Azt4q5aPlHq8GSSA+9zziyunDJwU+h2+z5moYvQPLrXOuH Wj/Q== X-Gm-Message-State: AOJu0Yw0AmDtMl2k1DPG616PA8SaRqKCzCPxg1WLz948gTj30fZ5ffI6 EaJmLnUhUgg+W72c7OjvJy4pjUsrbH8vvuL8MOwcp0aH0lbkGJTrRcJYH6KjmusJI2YNClAGvhw = X-Google-Smtp-Source: AGHT+IH1BPWrIDRbdo4viKHbdkBVS8UkUGpD07WECx7x8hG9p+nRJzYHZsLKSku4YuEDw2iHUckS6A== X-Received: by 2002:a05:600c:3109:b0:426:62c5:473e with SMTP id 5b1f17b1804b1-42bb01e57ddmr22514425e9.26.1724936895813; Thu, 29 Aug 2024 06:08:15 -0700 (PDT) Received: from poulhies-Precision-5550.lan ([2001:861:3382:1a90:5e2c:51b0:ac4a:92ca]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6deb2f5sm17074605e9.2.2024.08.29.06.08.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2024 06:08:15 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Viljar Indus Subject: [COMMITTED 13/17] ada: Print Insertion_Sloc in dmsg Date: Thu, 29 Aug 2024 15:07:43 +0200 Message-ID: <20240829130750.1651060-13-poulhies@adacore.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240829130750.1651060-1-poulhies@adacore.com> References: <20240829130750.1651060-1-poulhies@adacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-13.8 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org From: Viljar Indus gcc/ada/ * erroutc.adb (dmsg): Print Insertion_Sloc. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/erroutc.adb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/ada/erroutc.adb b/gcc/ada/erroutc.adb index 4e0a9f26e0d..db1c0923e90 100644 --- a/gcc/ada/erroutc.adb +++ b/gcc/ada/erroutc.adb @@ -327,6 +327,11 @@ package body Erroutc is Write_Location (E.Optr.Ptr); Write_Eol; + Write_Str + (" Insertion_Sloc = "); + Write_Location (E.Insertion_Sloc); + Write_Eol; + w (" Line = ", Int (E.Line)); w (" Col = ", Int (E.Col)); w (" Info = ", E.Info);