From patchwork Tue Jul 2 13:21:28 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: 1955286 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=AGVApxiI; 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 4WD3Xm2w5hz1xpc for ; Tue, 2 Jul 2024 23:24:24 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A6EAF388216C for ; Tue, 2 Jul 2024 13:24:22 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by sourceware.org (Postfix) with ESMTPS id E3BEB3882657 for ; Tue, 2 Jul 2024 13:21:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E3BEB3882657 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 E3BEB3882657 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::136 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719926519; cv=none; b=qhmLPgGH4qSYDwOPr86g41DploE8UYmXwnoyDGyLF4hfX7itY+wOoU6N2CP2fQxzJhxyI2Mvc6L5qg+aUP1gBTU9FsiPrXKu01n3rgpTBTm+E4MZqpG8Wjb0myoCZu31hP6J8AB8kloTyoadi1w5spimTHt1Ih4tGpU6sizhco4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719926519; c=relaxed/simple; bh=1gJgDBbYZTd5I20HIle/maNv49HQlcSh76Dj+FGlUxY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=XVs/3CDbAwVQzqgxXRSvedFHy4VtTdgaOxVffMDuxXVpuhm3adY1CJ2EHt2wjKIBV/ZZrLi6PghooN7I00Lp9Igs/w7Kvy3q/d51WMF6//MDGODfVCD+ur1CT27FwsmZLtmcOBdjtSkDWQJ7BDyEDGR+OoHj5NjTvaeAWaFzwDU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-52ce01403f6so4784189e87.0 for ; Tue, 02 Jul 2024 06:21:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1719926514; x=1720531314; 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=ZTxGRLJGM8GHxNIlQTW2Bw0TAPtNvvYtFzacI5itk6A=; b=AGVApxiILfYehK7zYxsMc6zdUYELf2LM+/dTZUEEGhxBulOTIypVo0XEze34j9vm1V zWh6JlIAo4rwwM/umkVjcPoxw3EbGBBvPYgsdLHI+pvGv2iXmoqT0DbuyN8gwm3TFP/g g7ATeQw+IIfdlQaDnNZA/bNde/QQcGkQh6GyyfssHaAkYo4M7/0AIEUwdZNCVemaVDPQ enXdTx8pRGtuuvf6dOy/FbizXffc548+yg+nT5sGVJno2/V9lrUCOfBzpbAfivGWJkJF I4+I9wYfeQzW42f/Bqh9iSFyy9NOXI0JRSSnFeIwFg6TmWNnDxtJORVy871MaDQO7xiQ qnjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719926514; x=1720531314; 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=ZTxGRLJGM8GHxNIlQTW2Bw0TAPtNvvYtFzacI5itk6A=; b=S1WanmwtmCnmMxV09X4xy/NKhNKGyXFiX67ozKYKuauaMPm2mmpD72Fmo9M0Db1Fzi YLhTU3bvVmHqkEyTBk6XiRlNdOy0xLi0cwtFExdYVw5sqrbKRLlaeZBYTPGWo63kLOZs IuTkF3Tmu7g8emdSoi1VuZS7w1HuKjW0c+oZx2Qexhzyrzil0HbXvR9SHghzYPxuwAix cWVKBCGbTU/36c0C3NS4h6hbOidDLG2FnbaRnekyv5tTaCF+fJKWluqkJBW6oDjtXhP4 uZX4ODfV8SEA+wEHXLOouvmxtfFhw60wZtiBtYovaE2ZGXlPsSomnJw3ucuXDgIFIUkP yu+A== X-Gm-Message-State: AOJu0YwwXNzCD7YczyCe0w1qQETVgsYpA8Gz5HsHus0p98zOTjkDhXBC w0VgwWlerPhf4DLkyA08AdWFSHIPHWgO+YoGwpb3rHKDfIShxS9dZNmqQef89im6Z0I56KVV8x0 = X-Google-Smtp-Source: AGHT+IFHE4EtbeEMNxBtx9ckS+m+VnU5NzwIFOoH3YTP2LgCQIojmXl22gi2IThIYrth0AkAR95sqQ== X-Received: by 2002:a05:6512:31c4:b0:52d:582e:8093 with SMTP id 2adb3069b0e04-52e82672444mr6272840e87.23.1719926512371; Tue, 02 Jul 2024 06:21:52 -0700 (PDT) Received: from poulhies-Precision-5550.lan ([2001:861:3382:1a90:53cf:a5ff:fb60:5a70]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4256b09abbfsm197319895e9.35.2024.07.02.06.21.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jul 2024 06:21:51 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Ronan Desplanques Subject: [COMMITTED 12/13] ada: Fix generic renaming table low bound on reset Date: Tue, 2 Jul 2024 15:21:28 +0200 Message-ID: <20240702132130.523603-12-poulhies@adacore.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240702132130.523603-1-poulhies@adacore.com> References: <20240702132130.523603-1-poulhies@adacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-13.9 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org From: Ronan Desplanques gcc/ada/ * sem_ch12.adb (Save_And_Reset): Fix value of low bound used to reset table. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_ch12.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/sem_ch12.adb b/gcc/ada/sem_ch12.adb index b93e8231c84..127b521e0a5 100644 --- a/gcc/ada/sem_ch12.adb +++ b/gcc/ada/sem_ch12.adb @@ -18095,7 +18095,7 @@ package body Sem_Ch12 is end loop; Generic_Renamings.Init; - Generic_Renamings.Set_Last (0); + Generic_Renamings.Set_Last (-1); Generic_Renamings_HTable.Reset; end return; end Save_And_Reset;