Message ID | 20241025091107.485741-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=VHqo6xne; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4XZcYG3lgVz1xwF for <incoming@patchwork.ozlabs.org>; Fri, 25 Oct 2024 20:14:26 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 82BCB3858424 for <incoming@patchwork.ozlabs.org>; Fri, 25 Oct 2024 09:14:24 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by sourceware.org (Postfix) with ESMTPS id BFB273858C48 for <gcc-patches@gcc.gnu.org>; Fri, 25 Oct 2024 09:11:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BFB273858C48 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 BFB273858C48 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::12f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729847502; cv=none; b=MIQ+KUQwy0PoTdPM1Ru2SbypH64BlYxJBnllhFYKVH49Un80aXNLFVUv0+CdRzRTgE1KRvo/IT12bOk1KjonhBRWWvTIzP+BcH7THfZkzIw+0WyAWyfkUBay4mbUwPaKt5xDWTVknIy8IAopvhRZr50fsCoEWqleluC+c5D//uc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729847502; c=relaxed/simple; bh=yRD1bpqud+1+u9FEeye961MqEaAG+eZkGRbeLP1ysfw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=SsdqADAveCAePTB+raBDNT0hECwJMmhddsmkRdpwwz4AUweN8tTNbM18/eOMqsLRZm1CH6nNoDQRAemtHOxIpTalif4bsNee4rZzOeyIKByo5aWjNVbWHrLdd+t94daRteO0z9vD45L21YZPc8TQqA0NzJ8vnic4o99+v2PLFT0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-539eb97f26aso1887187e87.2 for <gcc-patches@gcc.gnu.org>; Fri, 25 Oct 2024 02:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1729847496; x=1730452296; 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=p2Bfq1fxjmk968C6lchyxnzxSs9x/TK9gVR+UsGr9Io=; b=VHqo6xneAJKxj362CnwPoBNEgf/qNFeYKpu7d9CK3hbiN2dlRXutZCdqbSYQm8Qtl7 EnIwuLKRsQSasl3/cc74wv6FEt+r4Zhu81YXNHlMn42qf0re/9yHfUt1yUSDtn/vMoR8 eMH/XX0VXvCImzJms4o4odlQBXHx91YxOKmRCk0Do51vpQCD6DQfdCynfuhmHYnNI+KM AowiBGXBSy3u4BXzql10cYBFpuHT3Vxe5sULBY22IDDCAcZZz9m7B+tC70QCVjSgQI5V M9zJyOWjQs+vEjri3/uB5HYOGjulJSJFFGv9/10cIzXsgue2XJYDgx0ZaQBBjefDvrRE znlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729847496; x=1730452296; 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=p2Bfq1fxjmk968C6lchyxnzxSs9x/TK9gVR+UsGr9Io=; b=arL1CHelm76i6bJkhZE97ZeLxCDvHfifb0o9IUSdQj1JT9ALgyzgeEoPAWv0Rbg0R5 XokDV3yKQlYE6IidAETh98yT+pN6dBH4+grMka6v+4thM2FCEH4sZuFJsy2opQNPfMmU of03tp0an3YlXhrHK9ojPOQ5FOLVkRGctQQH3tZNuDWalyJd+DY8fXVJX4LulJIgDyEM auLk6ERI4WYhpnwNl/XfWjyzWCWoSHi9MWSsSJoyGsnsxUs8f/yIRwK8dMI6zsr4lDt+ +FwJBWffdtiKwp6iItp22z9MfqePUAlOe+/ab0ds2HRvDH7ao1hn+wlrx9wC/HV/uONX iBgA== X-Gm-Message-State: AOJu0Yx5tldzzUxSNB6YDTdk0NgYszWsU5ic8KXmGLaFnEVIjnK/woYg 7zdz+3MoUGSvtas+qODt3o/AFRMP98jQEu1LuSBisg8csKgNEb0ySPNUqQUoKZrZLJR+A434FBs = X-Google-Smtp-Source: AGHT+IFgDreZ781giqhQSmDBO6Fi0XxYKN+6EjRHiuxxbPzODpHaU9Z4YSRH9zhDvCmSXVlsnLjFxg== X-Received: by 2002:a05:6512:280d:b0:539:f7de:df6a with SMTP id 2adb3069b0e04-53b1a37cc52mr4929847e87.52.1729847496137; Fri, 25 Oct 2024 02:11:36 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:2626:b78c:6271:6c01]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38058b47aa8sm1013079f8f.51.2024.10.25.02.11.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2024 02:11:35 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Richard Kenner <kenner@adacore.com> Subject: [COMMITTED 15/35] ada: Update Compiler_Error documentation Date: Fri, 25 Oct 2024 11:10:44 +0200 Message-ID: <20241025091107.485741-15-poulhies@adacore.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241025091107.485741-1-poulhies@adacore.com> References: <20241025091107.485741-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 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: Pass parameters of full access unconstrained array types by copy in calls
|
expand
|
diff --git a/gcc/ada/comperr.ads b/gcc/ada/comperr.ads index eb8ae4ca6c6..e60a1fd9c8e 100644 --- a/gcc/ada/comperr.ads +++ b/gcc/ada/comperr.ads @@ -46,7 +46,7 @@ package Comperr is -- Note that this is only used at the outer level (to handle constraint -- errors or assert errors etc.) In the normal logic of the compiler we -- always use pragma Assert to check for errors, and if necessary an - -- explicit abort is achieved by pragma Assert (False). From_GCC is true + -- explicit abort is achieved by raise Program_Error. From_GCC is true -- for a GCC abort and false for a front end exception (with a possible -- message stored in TSD.Current_Excep).
From: Richard Kenner <kenner@adacore.com> Since we usually build without assertions, we force a bugbox by raising Program_Error, not an always-false assertion. gcc/ada/ChangeLog: * comperr.ads (Compiler_Error): Update documentation. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/comperr.ads | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)