Message ID | 20240517083207.130391-15-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=Ch4VT2Qq; 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 4VggNc4YG4z20dJ for <incoming@patchwork.ozlabs.org>; Fri, 17 May 2024 18:38:56 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 415EC3846422 for <incoming@patchwork.ozlabs.org>; Fri, 17 May 2024 08:38:54 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id C04A03849ADE for <gcc-patches@gcc.gnu.org>; Fri, 17 May 2024 08:32:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C04A03849ADE 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 C04A03849ADE Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::332 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715934767; cv=none; b=MHIbbSH6Kxw9gJHNid3BQ2/fNXt9weokngmnz2kRlwUkFUoSz4tJK3M7VNpO/K7GYnPAm5oDXMQrqF7vsOcAGa6p6k+szkj+BEbbeAWJd0Lle3pqYNnMrFRp7hCf/zDsC8QTG1z6O/5JQTxgSmk7YzBzDZd32+6b/H/BKMEtlrw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715934767; c=relaxed/simple; bh=8/2YVdZF7/tFG7HJEC76lwT6AZwdQoDoD5cvW5hxRdU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=xxJYKujMhQ0OUYGmj6l/QPqlErXN7eflkaaxJH9xcTysEd2HSWnm6deuT+rxdFA5WdAeJ3qX/dL2c/skj2LwhLz5xvlqU03GLI9TdNpr0k6jpzBM+BIVQcJgG+LqECby2f2QvszhKwkADu6fy5TPkt2DhncrN3kE3zOE2/Hvy1U= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-41fc5645bb1so63985895e9.1 for <gcc-patches@gcc.gnu.org>; Fri, 17 May 2024 01:32:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1715934751; x=1716539551; 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=nCSNTf7rhy6tgCYNWyJ5Z0hgG+qFiGdpBZDvDHfSWzY=; b=Ch4VT2QqOaRsHQMh5tNnotI4yK4MOxo2QxImOm0WOSD/oj3keqAyjlQIvgiJULZJL/ 4fCyMwYH063l1Uk7zFOyrKnjxNbeK+nlarQsjRBwoDbYW/WxXhloeuOSYtASSjc6OQlK 5oJ43doXXt1J1QvnhAQnAyktOc0a7V9FYtHP89NImF+E0KABHnqum5ezgjBzJwV4HTZP U+tQKE8keIa8UPy3nBPodrhPlClN/ShXr7Puy8pEw5x4ibRvyhyjSg8D4TJO7IZk5zBE WVpVFK8B9wCbiub/Gask8nOALUuMr1KKMMBIyYzQpNFBgYMSNlrweIwD+7PB4/IdhtXL cPrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715934751; x=1716539551; 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=nCSNTf7rhy6tgCYNWyJ5Z0hgG+qFiGdpBZDvDHfSWzY=; b=OYK9qeHnzBJ2N41jgbltBGm7e+0y7cFeSWOYdsR96FGlnfeIHT+52/KEUH+NSeHTkF wt0Nxglh9i8lJxtCHdSTjLUnVozKJ4Wft2+RVa+yDTH+f9SzA5zUQ1WVriab8/p3oPvO qCroQXHVeAiUBN5rscAf2IG70NZRds8vFVj8mviCP2bGftoeBTPPz5UUbyAFDNDA4qtc sU9oEdVxIJa8G7SO8V1VDa6MAYigc8LFB0tAgZqMCvuooBGdbsb3k1R1Sn9Y50KTiuYP eIevpcqSF/TRCqB8irUHowqxMtfLpySr5LteoTGRMuXCbntdTsoGaHyNbyKTmvYterBB tATg== X-Gm-Message-State: AOJu0Yx2oCUiX10hIHfLyGBG6q7TcfhufKz0n4hz1tkE+3YdXNbPtyqV aBze4K4ZL01d3VIxfCMPxHn0xNrW7hMxF+HDehKTL5uLtyMpUTF7hukR7rloYH2yVxCrYSzGorg = X-Google-Smtp-Source: AGHT+IGxPi0eKtppPCjvb+pwarnSQoR64lrVpR6tDDyGY/Eradu8tkCznDAXorpURRAbYZSjqFNHWg== X-Received: by 2002:a05:600c:3114:b0:41c:2313:d966 with SMTP id 5b1f17b1804b1-41fea93a0e2mr135761535e9.1.1715934751525; Fri, 17 May 2024 01:32:31 -0700 (PDT) Received: from poulhies-Precision-5550.lan ([2001:861:3382:1a90:de37:8b1c:1f33:2610]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-420273cff03sm75197045e9.26.2024.05.17.01.32.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 01:32:31 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Bob Duff <duff@adacore.com> Subject: [COMMITTED 15/35] ada: correction to gnatbind-related cleanups Date: Fri, 17 May 2024 10:31:47 +0200 Message-ID: <20240517083207.130391-15-poulhies@adacore.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240517083207.130391-1-poulhies@adacore.com> References: <20240517083207.130391-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-14.1 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 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/35] ada: Add support for 'Object_Size to pragma Compile_Time_{Warning, Error}
|
expand
|
diff --git a/gcc/ada/uname.adb b/gcc/ada/uname.adb index dbb08b88cfd..5a7dac53b3d 100644 --- a/gcc/ada/uname.adb +++ b/gcc/ada/uname.adb @@ -404,11 +404,10 @@ package body Uname is Suffix : Boolean := True) is begin - pragma Assert (Buf.Chars (1) /= '"'); - pragma Assert (Is_Body_Name (N) or else Is_Spec_Name (N)); - Buf.Length := 0; Append_Decoded (Buf, N); + pragma Assert (Buf.Chars (1) /= '"'); + pragma Assert (Is_Body_Name (N) or else Is_Spec_Name (N)); -- Buf always ends with "%s" or "%b", which we either remove, or replace -- with " (spec)" or " (body)". Set_Casing of Buf after checking for
From: Bob Duff <duff@adacore.com> Correction to previous change; Asserts had been moved to before Buf was initialized. gcc/ada/ * uname.adb (Get_Unit_Name_String): Move Asserts after Buf is initialized. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/uname.adb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)